def get_xem_numbering_for_show(indexer_id, indexer):
 if (indexer_id is None):
  return {}
 indexer_id = int(indexer_id)
 indexer = int(indexer)
 xem_refresh(indexer_id, indexer)
 result = {}
 for dbData in [x[u'doc'] for x in sickrage.srCore.mainDB.db.get_many(u'tv_episodes', indexer_id, with_doc=True)]:
  season = int((dbData[u'season'] or 0))
  episode = int((dbData[u'episode'] or 0))
  scene_season = int((dbData[u'scene_season'] or 0))
  scene_episode = int((dbData[u'scene_episode'] or 0))
  if ((int(dbData[u'indexer']) != indexer) or ((scene_season or scene_episode) == 0)):
   continue
  result[(season, episode)] = (scene_season, scene_episode)
 return result

def get_xem_numbering_for_show ( indexer_id , indexer ) : if ( indexer_id is None ) : return { } indexer_id = int ( indexer_id ) indexer = int ( indexer ) xem_refresh ( indexer_id , indexer ) result = { } for dbData in [ x [ u'doc' ] for x in sickrage . srCore . mainDB . db . get_many ( u'tv_episodes' , indexer_id , with_doc = True ) ] : season = int ( ( dbData [ u'season' ] or 0 ) ) episode = int ( ( dbData [ u'episode' ] or 0 ) ) scene_season = int ( ( dbData [ u'scene_season' ] or 0 ) ) scene_episode = int ( ( dbData [ u'scene_episode' ] or 0 ) ) if ( ( int ( dbData [ u'indexer' ] ) != indexer ) or ( ( scene_season or scene_episode ) == 0 ) ) : continue result [ ( season , episode ) ] = ( scene_season , scene_episode ) return result
returns a dict of : mappings for an entire show .