def find_scene_numbering(indexer_id, indexer, season, episode):
 if ((indexer_id is None) or (season is None) or (episode is None)):
  return (season, episode)
 indexer_id = int(indexer_id)
 indexer = int(indexer)
 dbData = [x[u'doc'] for x in sickrage.srCore.mainDB.db.get_many(u'scene_numbering', indexer_id, with_doc=True) if ((x[u'doc'][u'indexer'] == indexer) and (x[u'doc'][u'season'] == season) and (x[u'doc'][u'episode'] == episode) and (x[u'doc'][u'scene_season'] != 0) and (x[u'doc'][u'scene_episode'] != 0))]
 if dbData:
  return (int((dbData[0][u'scene_season'] or 0)), int((dbData[0][u'scene_episode'] or 0)))

def find_scene_numbering ( indexer_id , indexer , season , episode ) : if ( ( indexer_id is None ) or ( season is None ) or ( episode is None ) ) : return ( season , episode ) indexer_id = int ( indexer_id ) indexer = int ( indexer ) dbData = [ x [ u'doc' ] for x in sickrage . srCore . mainDB . db . get_many ( u'scene_numbering' , indexer_id , with_doc = True ) if ( ( x [ u'doc' ] [ u'indexer' ] == indexer ) and ( x [ u'doc' ] [ u'season' ] == season ) and ( x [ u'doc' ] [ u'episode' ] == episode ) and ( x [ u'doc' ] [ u'scene_season' ] != 0 ) and ( x [ u'doc' ] [ u'scene_episode' ] != 0 ) ) ] if dbData : return ( int ( ( dbData [ 0 ] [ u'scene_season' ] or 0 ) ) , int ( ( dbData [ 0 ] [ u'scene_episode' ] or 0 ) ) )
same as get_scene_numbering() .