From 0ff76397c7ac9502953bb2de84f220620db09f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:44:02 -0500 Subject: [PATCH] WIP --- bazarr/main.py | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index b4d487d17..c52b75ac7 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1551,14 +1551,14 @@ def get_subtitle(): def manual_search_json(): - episodePath = request.form.episodePath - sceneName = request.form.sceneName + episodePath = request.form.get('episodePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') hi = request.form.get('hi').capitalize() forced = request.form.get('forced').capitalize() - title = request.form.title + title = request.form.get('title') providers_list = get_providers() providers_auth = get_providers_auth() @@ -1572,18 +1572,18 @@ def manual_get_subtitle(): ref = request.environ['HTTP_REFERER'] - episodePath = request.form.episodePath - sceneName = request.form.sceneName + episodePath = request.form.get('episodePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') hi = request.form.get('hi').capitalize() forced = request.form.get('forced').capitalize() selected_provider = request.form.get('provider') - subtitle = request.form.subtitle + subtitle = request.form.get('subtitle') sonarrSeriesId = request.form.get('sonarrSeriesId') sonarrEpisodeId = request.form.get('sonarrEpisodeId') - title = request.form.title + title = request.form.get('title') providers_auth = get_providers_auth() try: @@ -1611,8 +1611,8 @@ def perform_manual_upload_subtitle(): ref = request.environ['HTTP_REFERER'] - episodePath = request.form.episodePath - sceneName = request.form.sceneName + episodePath = request.form.get('episodePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') @@ -1620,7 +1620,7 @@ def perform_manual_upload_subtitle(): upload = request.files.get('upload') sonarrSeriesId = request.form.get('sonarrSeriesId') sonarrEpisodeId = request.form.get('sonarrEpisodeId') - title = request.form.title + title = request.form.get('title') _, ext = os.path.splitext(upload.filename) @@ -1657,15 +1657,15 @@ def get_subtitle_movie(): ref = request.environ['HTTP_REFERER'] - moviePath = request.form.moviePath - sceneName = request.form.sceneName + moviePath = request.form.get('moviePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') hi = request.form.get('hi').capitalize() forced = request.form.get('forced').capitalize() radarrId = request.form.get('radarrId') - title = request.form.title + title = request.form.get('title') providers_list = get_providers() providers_auth = get_providers_auth() @@ -1692,14 +1692,14 @@ def get_subtitle_movie(): def manual_search_movie_json(): - moviePath = request.form.moviePath - sceneName = request.form.sceneName + moviePath = request.form.get('moviePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') hi = request.form.get('hi').capitalize() forced = request.form.get('forced').capitalize() - title = request.form.title + title = request.form.get('title') providers_list = get_providers() providers_auth = get_providers_auth() @@ -1713,17 +1713,17 @@ def manual_get_subtitle_movie(): ref = request.environ['HTTP_REFERER'] - moviePath = request.form.moviePath - sceneName = request.form.sceneName + moviePath = request.form.get('moviePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') hi = request.form.get('hi').capitalize() forced = request.form.get('forced').capitalize() - selected_provider = request.form.provider - subtitle = request.form.subtitle + selected_provider = request.form.get('provider') + subtitle = request.form.get('subtitle') radarrId = request.form.get('radarrId') - title = request.form.title + title = request.form.get('title') providers_auth = get_providers_auth() try: @@ -1750,15 +1750,15 @@ def perform_manual_upload_subtitle_movie(): ref = request.environ['HTTP_REFERER'] - moviePath = request.form.moviePath - sceneName = request.form.sceneName + moviePath = request.form.get('moviePath') + sceneName = request.form.get('sceneName') if sceneName == "null": sceneName = "None" language = request.form.get('language') forced = True if request.form.get('forced') == '1' else False upload = request.files.get('upload') radarrId = request.form.get('radarrId') - title = request.form.title + title = request.form.get('title') _, ext = os.path.splitext(upload.filename)