data=c.execute("SELECT * FROM table_history WHERE timestamp > ? AND score is not null",(minimum_timestamp,)).fetchall()
data=c.execute('SELECT video_path, language, score FROM table_history WHERE action = 1 AND timestamp > ? AND score is not null AND score < "360"',(minimum_timestamp,)).fetchall()
db.close()
returndata
episodes_to_upgrade=[]
forepisodeindata:
ifos.path.exists(path_replace(episode[0])):
episodes_to_upgrade.append(episode)
providers_list=get_providers()
providers_auth=get_providers_auth()
forepisodeinepisodes_to_upgrade:
notifications.write(
msg='Searching for '+str(language_from_alpha2(episode[1]))+' subtitles for this episode: '+path_replace(