From af400056166bb657c1a77ec0cd4d430b9e25f219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 31 May 2020 21:59:33 -0400 Subject: [PATCH] Fix for #1006 --- bazarr/api.py | 8 ++++++-- views/episodes.html | 4 +++- views/movie.html | 12 +++++++----- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/bazarr/api.py b/bazarr/api.py index cd11e45aa..bbfe8d6ef 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -589,6 +589,7 @@ class EpisodesSubtitlesUpload(Resource): sonarrSeriesId = request.form.get('sonarrSeriesId') sonarrEpisodeId = request.form.get('sonarrEpisodeId') title = request.form.get('title') + audioLanguage = request.form.get('audioLanguage') _, ext = os.path.splitext(upload.filename) @@ -602,7 +603,8 @@ class EpisodesSubtitlesUpload(Resource): title=title, scene_name=sceneName, media_type='series', - subtitle=upload) + subtitle=upload, + audio_language=audioLanguage) if result is not None: message = result[0] @@ -944,6 +946,7 @@ class MovieSubtitlesUpload(Resource): upload = request.files.get('upload') radarrId = request.form.get('radarrId') title = request.form.get('title') + audioLanguage = request.form.get('audioLanguage') _, ext = os.path.splitext(upload.filename) @@ -957,7 +960,8 @@ class MovieSubtitlesUpload(Resource): title=title, scene_name=sceneName, media_type='movie', - subtitle=upload) + subtitle=upload, + audio_language=audioLanguage) if result is not None: message = result[0] diff --git a/views/episodes.html b/views/episodes.html index 530f544af..f119cebe8 100644 --- a/views/episodes.html +++ b/views/episodes.html @@ -199,6 +199,7 @@ +