1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 19:19:41 +08:00

fixed str to byte pattern (compatible with 2.x and 3)

This commit is contained in:
Anthony Weems 2014-05-09 18:29:31 -05:00
parent 76adb9074a
commit 8a7624df3d

View File

@ -60,7 +60,7 @@ class FFmpegPostProcessor(PostProcessor):
self._downloader.to_screen(u'[debug] ffmpeg command line: %s' % shell_quote(cmd))
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
if via_stdin:
stdout, stderr = p.communicate(input=bytes(stdin_cmd, 'utf-8'))
stdout, stderr = p.communicate(input=stdin_cmd.encode('utf-8'))
else:
stdout, stderr = p.communicate()
if p.returncode != 0: