mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
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
This commit is contained in:
parent
3fdc183572
commit
d061054f33
@ -31,6 +31,9 @@ def download_rtmp(options, url):
|
||||
if options.silent or options.output == "-":
|
||||
args.append("-q")
|
||||
if 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:
|
||||
|
Loading…
Reference in New Issue
Block a user