1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00

Added audio language variables to post processing command. Required to use with subsync.

This commit is contained in:
JpF4E 2020-02-22 20:53:33 +00:00
parent e5ecd17f80
commit 1af408f684

View file

@ -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()