mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-22 05:51:10 +00:00
Fix for #737.
This commit is contained in:
parent
b3b15252ea
commit
db7951ced2
1 changed files with 10 additions and 0 deletions
|
@ -250,6 +250,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 == "":
|
||||||
logging.error(
|
logging.error(
|
||||||
|
@ -475,6 +480,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 == "":
|
||||||
logging.error(
|
logging.error(
|
||||||
|
|
Loading…
Reference in a new issue