From 3c51010c17f9a342c673aac636e5ce044b1236fd Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 23 Feb 2018 15:46:56 -0500 Subject: [PATCH] Adding to history which guessing mode was used to find the subtitles --- get_subtitle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/get_subtitle.py b/get_subtitle.py index ad0516367..4ec0ff6ae 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -50,7 +50,10 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName): else: downloaded_provider = str(result[0]).strip('<>').split(' ')[0][:-8] downloaded_language = pycountry.languages.lookup(str(str(result[0]).strip('<>').split(' ')[2].strip('[]'))).name - message = downloaded_language + " subtitles downloaded from " + downloaded_provider + "." + if sceneName is not None: + message = downloaded_language + " subtitles downloaded from " + downloaded_provider + " using scene name from Sonarr guessing." + else: + message = downloaded_language + " subtitles downloaded from " + downloaded_provider + " using filename guessing." return message