def get_scene_absolute_numbering(indexer_id, indexer, absolute_number, fallback_to_xem=True):
 if ((indexer_id is None) or (absolute_number is None)):
  return absolute_number
 indexer_id = int(indexer_id)
 indexer = int(indexer)
 showObj = findCertainShow(sickrage.srCore.SHOWLIST, indexer_id)
 if (showObj and (not showObj.is_scene)):
  return absolute_number
 result = find_scene_absolute_numbering(indexer_id, indexer, absolute_number)
 if result:
  return result
 else:
  if fallback_to_xem:
   xem_result = find_xem_absolute_numbering(indexer_id, indexer, absolute_number)
   if xem_result:
    return xem_result
  return absolute_number

def get_scene_absolute_numbering ( indexer_id , indexer , absolute_number , fallback_to_xem = True ) : if ( ( indexer_id is None ) or ( absolute_number is None ) ) : return absolute_number indexer_id = int ( indexer_id ) indexer = int ( indexer ) showObj = findCertainShow ( sickrage . srCore . SHOWLIST , indexer_id ) if ( showObj and ( not showObj . is_scene ) ) : return absolute_number result = find_scene_absolute_numbering ( indexer_id , indexer , absolute_number ) if result : return result else : if fallback_to_xem : xem_result = find_xem_absolute_numbering ( indexer_id , indexer , absolute_number ) if xem_result : return xem_result return absolute_number
returns a tuple .