def get_all_scene_exceptions(indexer_id):
 exceptionsDict = {}
 cache_db_con = db.DBConnection('cache.db')
 exceptions = cache_db_con.select('SELECT show_name,season FROM scene_exceptions WHERE indexer_id = ?', [indexer_id])
 if exceptions:
  for cur_exception in exceptions:
   if (not (cur_exception['season'] in exceptionsDict)):
    exceptionsDict[cur_exception['season']] = []
   exceptionsDict[cur_exception['season']].append(cur_exception['show_name'])
 return exceptionsDict

def get_all_scene_exceptions ( indexer_id ) : exceptionsDict = { } cache_db_con = db . DBConnection ( 'cache.db' ) exceptions = cache_db_con . select ( 'SELECT show_name,season FROM scene_exceptions WHERE indexer_id = ?' , [ indexer_id ] ) if exceptions : for cur_exception in exceptions : if ( not ( cur_exception [ 'season' ] in exceptionsDict ) ) : exceptionsDict [ cur_exception [ 'season' ] ] = [ ] exceptionsDict [ cur_exception [ 'season' ] ] . append ( cur_exception [ 'show_name' ] ) return exceptionsDict
get all scene exceptions for a show id .