From d061054f3366846c937d779c4d8295d04aa22110 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 10 Mar 2013 13:43:22 +0100 Subject: [PATCH] download_rtmp: work around for a bug in python2.7 python2.7.2 in OSX Mountain Lion has bug in shlex.split(). see http://bugs.python.org/issue6988 --- lib/svtplay/rtmp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/svtplay/rtmp.py b/lib/svtplay/rtmp.py index a048458..122795a 100644 --- a/lib/svtplay/rtmp.py +++ b/lib/svtplay/rtmp.py @@ -31,7 +31,10 @@ def download_rtmp(options, url): if options.silent or options.output == "-": args.append("-q") if options.other: - args += shlex.split(options.other) + if sys.version_info < (3, 0): + args += shlex.split(options.other.encode("utf-8")) + else: + args += shlex.split(options.other) command = ["rtmpdump", "-r", url] + args try: subprocess.call(command)