From 1af408f68404f2f8b0343fef5fe6fdc391f943d6 Mon Sep 17 00:00:00 2001 From: JpF4E Date: Sat, 22 Feb 2020 20:53:33 +0000 Subject: [PATCH] Added audio language variables to post processing command. Required to use with subsync. --- bazarr/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index ec314ecfb..2f0715a22 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1807,7 +1807,7 @@ def get_subtitle(): sonarrEpisodeId = request.forms.get('sonarrEpisodeId') title = request.forms.title - data = database.execute("SELECT audio_language FROM table_shows WHERE sonarrSeriesId=?", (sonarrSeriesId,)) + data = database.execute("SELECT audio_language FROM table_shows WHERE sonarrSeriesId=?", (sonarrSeriesId,), only_one=True) audio_language = data['audio_language'] providers_list = get_providers() @@ -1946,7 +1946,7 @@ def get_subtitle_movie(): radarrId = request.forms.get('radarrId') title = request.forms.title - data = database.execute("SELECT audio_language FROM table_movies WHERE radarrId=?", (radarrId,)) + data = database.execute("SELECT audio_language FROM table_movies WHERE radarrId=?", (radarrId,), only_one=True) audio_language = data['audio_language'] providers_list = get_providers()