Fix for wrong language logged to history when manually uploading amn episode subtitles.

pull/1121/head
Louis Vézina 4 years ago
parent 0b938524ee
commit 6a6425d7bc

@ -730,9 +730,9 @@ class EpisodesSubtitlesUpload(Resource):
path = result[1] path = result[1]
subs_path = result[2] subs_path = result[2]
if forced: if forced:
language_code = result[2] + ":forced" language_code = language + ":forced"
else: else:
language_code = result[2] language_code = language
provider = "manual" provider = "manual"
score = 360 score = 360
history_log(4, sonarrSeriesId, sonarrEpisodeId, message, path, language_code, provider, score, subtitles_path=subs_path) history_log(4, sonarrSeriesId, sonarrEpisodeId, message, path, language_code, provider, score, subtitles_path=subs_path)

Loading…
Cancel
Save