def get_scene_seasons(indexer_id):
 exceptionsSeasonList = []
 if (indexer_id not in exceptionsSeasonCache):
  dbData = [x[u'doc'] for x in sickrage.srCore.cacheDB.db.get_many(u'scene_exceptions', indexer_id, with_doc=True)]
  exceptionsSeasonList = list(set([int(x[u'season']) for x in dbData]))
  if (not (indexer_id in exceptionsSeasonCache)):
   exceptionsSeasonCache[indexer_id] = {}
  exceptionsSeasonCache[indexer_id] = exceptionsSeasonList
 else:
  exceptionsSeasonList = exceptionsSeasonCache[indexer_id]
 return exceptionsSeasonList

def get_scene_seasons ( indexer_id ) : exceptionsSeasonList = [ ] if ( indexer_id not in exceptionsSeasonCache ) : dbData = [ x [ u'doc' ] for x in sickrage . srCore . cacheDB . db . get_many ( u'scene_exceptions' , indexer_id , with_doc = True ) ] exceptionsSeasonList = list ( set ( [ int ( x [ u'season' ] ) for x in dbData ] ) ) if ( not ( indexer_id in exceptionsSeasonCache ) ) : exceptionsSeasonCache [ indexer_id ] = { } exceptionsSeasonCache [ indexer_id ] = exceptionsSeasonList else : exceptionsSeasonList = exceptionsSeasonCache [ indexer_id ] return exceptionsSeasonList
return a list of season numbers that have scene exceptions .