From 6a6425d7bc210c093e44266ad38b27b2fa4ff665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 19 Sep 2020 09:22:27 -0400 Subject: [PATCH] Fix for wrong language logged to history when manually uploading amn episode subtitles. --- bazarr/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/api.py b/bazarr/api.py index dcbda42fb..07c73d77e 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -730,9 +730,9 @@ class EpisodesSubtitlesUpload(Resource): path = result[1] subs_path = result[2] if forced: - language_code = result[2] + ":forced" + language_code = language + ":forced" else: - language_code = result[2] + language_code = language provider = "manual" score = 360 history_log(4, sonarrSeriesId, sonarrEpisodeId, message, path, language_code, provider, score, subtitles_path=subs_path)