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)