|
|
|
@ -830,7 +830,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, monitored 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, failedAttempts 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()
|
|
|
|
@ -1017,7 +1017,7 @@ def wantedmovies():
|
|
|
|
|
offset = (int(page) - 1) * page_size
|
|
|
|
|
max_page = int(math.ceil(missing_count / (page_size + 0.0)))
|
|
|
|
|
|
|
|
|
|
c.execute("SELECT title, missing_subtitles, radarrId, path_substitution(path), hearing_impaired, sceneName FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string + " ORDER BY _rowid_ DESC LIMIT ? OFFSET ?", (page_size, offset,))
|
|
|
|
|
c.execute("SELECT title, missing_subtitles, radarrId, path_substitution(path), hearing_impaired, sceneName, failedAttempts FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string + " ORDER BY _rowid_ DESC LIMIT ? OFFSET ?", (page_size, offset,))
|
|
|
|
|
data = c.fetchall()
|
|
|
|
|
c.close()
|
|
|
|
|
return template('wantedmovies', __file__=__file__, bazarr_version=bazarr_version, rows=data, missing_count=missing_count, page=page, max_page=max_page, base_url=base_url, page_size=page_size, current_port=port)
|
|
|
|
|