From 0963abac9b26feb3732adfcf91139027066249ee Mon Sep 17 00:00:00 2001 From: j Date: Fri, 28 Apr 2017 17:09:12 +0200 Subject: [PATCH] stdout is binary --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index fa7e2577a..73a420ad7 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -335,7 +335,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}): os.unlink(enc_target) if os.path.exists(target): os.unlink(target) - stdout = stdout.replace('\r\n', '\n').replace('\r', '\n') + stdout = stdout.decode('utf-8').replace('\r\n', '\n').replace('\r', '\n') return False, stdout if format == 'webm' and audio_only: cmd = ['mkvmerge', '-w', '-o', target, '--cues', '-1:all', enc_target]