This commit is contained in:
Louis Vézina 2020-01-05 10:33:36 -05:00
parent b3b15252ea
commit db7951ced2
1 changed files with 10 additions and 0 deletions

View File

@ -249,6 +249,11 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
if os.name == 'nt':
out = out.decode(encoding)
try:
out = out.decode(sys.stdout.encoding)
except (UnicodeDecodeError, AttributeError):
pass
except:
if out == "":
@ -474,6 +479,11 @@ def manual_download_subtitle(path, language, hi, forced, subtitle, provider, pro
if os.name == 'nt':
out = out.decode(encoding)
try:
out = out.decode(sys.stdout.encoding)
except (UnicodeDecodeError, AttributeError):
pass
except:
if out == "":