mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
Fix for #737.
This commit is contained in:
parent
b3b15252ea
commit
db7951ced2
1 changed files with 10 additions and 0 deletions
|
@ -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 == "":
|
||||
|
|
Loading…
Reference in a new issue