def addNameToCache(name, tvdb_id):
 name = sanitizeSceneName(name)
 if (not tvdb_id):
  tvdb_id = 0
 cacheDB = db.DBConnection('cache.db')
 cacheDB.action('INSERT INTO scene_names (tvdb_id, name) VALUES (?, ?)', [tvdb_id, name])

def addNameToCache ( name , tvdb_id ) : name = sanitizeSceneName ( name ) if ( not tvdb_id ) : tvdb_id = 0 cacheDB = db . DBConnection ( 'cache.db' ) cacheDB . action ( 'INSERT INTO scene_names (tvdb_id, name) VALUES (?, ?)' , [ tvdb_id , name ] )
adds the show & tvdb id to the scene_names table in cache .