mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-15 10:25:13 +08:00
Adding to history which guessing mode was used to find the subtitles
This commit is contained in:
parent
bb65216ddf
commit
3c51010c17
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName):
|
||||||
else:
|
else:
|
||||||
downloaded_provider = str(result[0]).strip('<>').split(' ')[0][:-8]
|
downloaded_provider = str(result[0]).strip('<>').split(' ')[0][:-8]
|
||||||
downloaded_language = pycountry.languages.lookup(str(str(result[0]).strip('<>').split(' ')[2].strip('[]'))).name
|
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
|
return message
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue