series_details=c.execute("SELECT title, overview, poster, fanart, hearing_impaired, tvdbid, audio_language, languages, path_substitution(path) FROM table_shows WHERE sonarrSeriesId LIKE ?",(str(no),)).fetchone()
tvdbid=series_details[5]
episodes=c.execute("SELECT title, path_substitution(path), season, episode, subtitles, sonarrSeriesId, missing_subtitles, sonarrEpisodeId, scene_name FROM table_episodes WHERE sonarrSeriesId LIKE ? ORDER BY episode ASC",(str(no),)).fetchall()
episodes=c.execute("SELECT title, path_substitution(path), season, episode, subtitles, sonarrSeriesId, missing_subtitles, sonarrEpisodeId, scene_name, monitored FROM table_episodes WHERE sonarrSeriesId LIKE ? ORDER BY episode ASC",(str(no),)).fetchall()
number=len(episodes)
languages=c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1").fetchall()
c.execute("SELECT tmdbId, title, path_substitution(path), languages, hearing_impaired, radarrId, poster, audio_language FROM table_movies ORDER BY title ASC LIMIT ? OFFSET ?",(page_size,offset,))
c.execute("SELECT tmdbId, title, path_substitution(path), languages, hearing_impaired, radarrId, poster, audio_language, monitored FROM table_movies ORDER BY title ASC LIMIT ? OFFSET ?",(page_size,offset,))
data=c.fetchall()
c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1")
languages=c.fetchall()
@ -506,7 +506,7 @@ def movie(no):
c=conn.cursor()
movies_details=[]
movies_details=c.execute("SELECT title, overview, poster, fanart, hearing_impaired, tmdbid, audio_language, languages, path_substitution(path), subtitles, radarrId, missing_subtitles, sceneName FROM table_movies WHERE radarrId LIKE ?",(str(no),)).fetchone()
movies_details=c.execute("SELECT title, overview, poster, fanart, hearing_impaired, tmdbid, audio_language, languages, path_substitution(path), subtitles, radarrId, missing_subtitles, sceneName, monitored FROM table_movies WHERE radarrId LIKE ?",(str(no),)).fetchone()
tmdbid=movies_details[5]
languages=c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1").fetchall()
episodes_details=c_db.execute("SELECT path, missing_subtitles, sonarrEpisodeId, scene_name FROM table_episodes WHERE sonarrSeriesId = ?",(no,)).fetchall()
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()
<div class="ui basic icon" data-tooltip="Automatic download of subtitles will happen only for monitored episodes/movies in Sonarr/Radarr." data-inverted="">