def get_scene_numbering(indexer_id, indexer, season, episode, fallback_to_xem=True):
 if ((indexer_id is None) or (season is None) or (episode is None)):
  return (season, episode)
 showObj = Show.find(sickbeard.showList, int(indexer_id))
 if (showObj and (not showObj.is_scene)):
  return (season, episode)
 result = find_scene_numbering(int(indexer_id), int(indexer), season, episode)
 if result:
  return result
 else:
  if fallback_to_xem:
   xem_result = find_xem_numbering(int(indexer_id), int(indexer), season, episode)
   if xem_result:
    return xem_result
  return (season, episode)

def get_scene_numbering ( indexer_id , indexer , season , episode , fallback_to_xem = True ) : if ( ( indexer_id is None ) or ( season is None ) or ( episode is None ) ) : return ( season , episode ) showObj = Show . find ( sickbeard . showList , int ( indexer_id ) ) if ( showObj and ( not showObj . is_scene ) ) : return ( season , episode ) result = find_scene_numbering ( int ( indexer_id ) , int ( indexer ) , season , episode ) if result : return result else : if fallback_to_xem : xem_result = find_xem_numbering ( int ( indexer_id ) , int ( indexer ) , season , episode ) if xem_result : return xem_result return ( season , episode )
returns a tuple .