episodes_details=c_db.execute('SELECT path, missing_subtitles, sonarrEpisodeId, scene_name FROM table_episodes WHERE sonarrSeriesId = ? AND missing_subtitles != "[]"'+monitored_only_query_string,(no,)).fetchall()
series_details=c_db.execute("SELECT hearing_impaired FROM table_shows WHERE sonarrSeriesId = ?",(no,)).fetchone()
enabled_providers=c_db.execute("SELECT * FROM table_settings_providers WHERE enabled = 1").fetchall()
scheduler.add_job(update_all_episodes,CronTrigger(hour=4),max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_episodes',name='Update all episodes subtitles from disk',replace_existing=True)
eliffull_update=="Weekly":
scheduler.add_job(update_all_episodes,CronTrigger(day_of_week='sun'),hour=4,max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_episodes',name='Update all episodes subtitles from disk',replace_existing=True)
eliffull_update=="Manually":
scheduler.add_job(update_all_episodes,CronTrigger(year='2100'),hour=4,max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_episodes',name='Update all episodes subtitles from disk',replace_existing=True)
name='Update all episodes subtitles from disk',replace_existing=True)
defradarr_full_update():
full_update=get_radarr_settings()[5]
iffull_update=="Daily":
scheduler.add_job(update_all_movies,CronTrigger(hour=5),max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_movies',name='Update all movies subtitles from disk',replace_existing=True)
eliffull_update=="Weekly":
scheduler.add_job(update_all_movies,CronTrigger(day_of_week='sun'),hour=5,max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_movies',name='Update all movies subtitles from disk',replace_existing=True)
eliffull_update=="Manually":
scheduler.add_job(update_all_movies,CronTrigger(year='2100'),hour=5,max_instances=1,coalesce=True,misfire_grace_time=15,id='update_all_movies',name='Update all movies subtitles from disk',replace_existing=True)
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplylastupdateandchangestogeneralsettings.</div></div></div>
%elifrestart_required[1]=='1':
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplylastupdate.</div></div></div>
%elifrestart_required[0]=='1':
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplychangestogeneralsettings.</div></div></div>
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplylastupdateandchangestogeneralsettings.</div></div></div>
%elifrestart_required[1]=='1':
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplylastupdate.</div></div></div>
%elifrestart_required[0]=='1':
<divclass='ui center aligned grid'><divclass='fifteen wide column'><divclass="ui red message">Bazarrneedtoberestartedtoapplychangestogeneralsettings.</div></div></div>