From 34cd0233ea8c3d17c6e2a9db7755def5ac9b234a Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 2 Apr 2018 13:20:02 -0400 Subject: [PATCH] Fix sceneName usage in wanted page --- bazarr.py | 2 +- views/wanted.tpl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr.py b/bazarr.py index c93e88cc4..bb2f35987 100644 --- a/bazarr.py +++ b/bazarr.py @@ -341,7 +341,7 @@ def wanted(): offset = (int(page) - 1) * 15 max_page = int(math.ceil(missing_count / 15.0)) - c.execute("SELECT table_shows.title, table_episodes.season || 'x' || table_episodes.episode, table_episodes.title, table_episodes.missing_subtitles, table_episodes.sonarrSeriesId, path_substitution(table_episodes.path), table_shows.hearing_impaired, table_episodes.sonarrEpisodeId FROM table_episodes INNER JOIN table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE table_episodes.missing_subtitles != '[]' ORDER BY table_episodes._rowid_ DESC LIMIT 15 OFFSET ?", (offset,)) + c.execute("SELECT table_shows.title, table_episodes.season || 'x' || table_episodes.episode, table_episodes.title, table_episodes.missing_subtitles, table_episodes.sonarrSeriesId, path_substitution(table_episodes.path), table_shows.hearing_impaired, table_episodes.sonarrEpisodeId, table_episodes.scene_name FROM table_episodes INNER JOIN table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE table_episodes.missing_subtitles != '[]' ORDER BY table_episodes._rowid_ DESC LIMIT 15 OFFSET ?", (offset,)) data = c.fetchall() c.close() return template('wanted', __file__=__file__, bazarr_version=bazarr_version, rows=data, missing_count=missing_count, page=page, max_page=max_page, base_url=base_url) diff --git a/views/wanted.tpl b/views/wanted.tpl index 29e39c3ae..35c1c3d10 100644 --- a/views/wanted.tpl +++ b/views/wanted.tpl @@ -75,7 +75,7 @@ %missing_languages = ast.literal_eval(row[3]) %if missing_languages is not None: %for language in missing_languages: - + {{language}} @@ -146,6 +146,7 @@ $('.get_subtitle').click(function(){ var values = { episodePath: $(this).attr("data-episodePath"), + sceneName: $(this).attr("data-sceneName"), language: $(this).attr("data-language"), hi: $(this).attr("data-hi"), sonarrSeriesId: $(this).attr("data-sonarrSeriesId"),