diff options
author | Aurélio A. Heckert <aurelio@colivre.coop.br> | 2015-06-16 18:10:31 -0300 |
---|---|---|
committer | Aurélio A. Heckert <aurelio@colivre.coop.br> | 2015-06-16 18:10:31 -0300 |
commit | 14835de9fb41798c8e6e731a3f07ae871770666f (patch) | |
tree | 5490879a2e241c06180375f581a8bf47f9cff2e1 /youtube_dl/__init__.py | |
parent | d84f1d14b526c4a5359117a58f25691a3da4c97e (diff) |
Use shlex.split for --pp-params and update related docs.
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 5b28e4817..8b54d4ae2 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -171,8 +171,10 @@ def _real_main(argv=None): if opts.recodevideo is not None: if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv', 'xvid']: parser.error('invalid video recode format specified') - if opts.pp_params is not None: - opts.pp_params = opts.pp_params.split() + if opts.pp_params is None: + opts.pp_params = [] + else: + opts.pp_params = shlex.split(opts.pp_params) if opts.convertsubtitles is not None: if opts.convertsubtitles not in ['srt', 'vtt', 'ass']: parser.error('invalid subtitle format specified') |