pull/745/head
Louis Vézina 5 years ago
parent b3b15252ea
commit db7951ced2

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

Loading…
Cancel
Save