forked from 0x2620/pandora
stdout is binary
This commit is contained in:
parent
a175238d09
commit
0963abac9b
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
os.unlink(enc_target)
|
os.unlink(enc_target)
|
||||||
if os.path.exists(target):
|
if os.path.exists(target):
|
||||||
os.unlink(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
|
return False, stdout
|
||||||
if format == 'webm' and audio_only:
|
if format == 'webm' and audio_only:
|
||||||
cmd = ['mkvmerge', '-w', '-o', target, '--cues', '-1:all', enc_target]
|
cmd = ['mkvmerge', '-w', '-o', target, '--cues', '-1:all', enc_target]
|
||||||
|
|
Loading…
Reference in a new issue