about summary refs log tree commit diff
path: root/youtube_dl/postprocessor/common.py
diff options
context:
space:
mode:
authorAurélio A. Heckert <aurelio@colivre.coop.br>2015-06-30 16:22:09 -0300
committerAurélio A. Heckert <aurelio@colivre.coop.br>2015-06-30 16:22:09 -0300
commit1866432db74946c2b66263d38ed2c9d9d7e3177d (patch)
tree49409dd9af67a997ad7b49a3b2bd27514c73811b /youtube_dl/postprocessor/common.py
parent14835de9fb41798c8e6e731a3f07ae871770666f (diff)
downloadyoutube-dl-1866432db74946c2b66263d38ed2c9d9d7e3177d.tar.gz
youtube-dl-1866432db74946c2b66263d38ed2c9d9d7e3177d.tar.xz
youtube-dl-1866432db74946c2b66263d38ed2c9d9d7e3177d.zip
Rename --pp-params to --postprocessor-args and access value as super class attribute
Diffstat (limited to 'youtube_dl/postprocessor/common.py')
-rw-r--r--youtube_dl/postprocessor/common.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/common.py b/youtube_dl/postprocessor/common.py
index d944d9367..c44501b59 100644
--- a/youtube_dl/postprocessor/common.py
+++ b/youtube_dl/postprocessor/common.py
@@ -1,6 +1,7 @@
 from __future__ import unicode_literals
 
 import os
+import shlex
 
 from ..utils import (
     PostProcessingError,
@@ -23,12 +24,13 @@ class PostProcessor(object):
 
     PostProcessor objects follow a "mutual registration" process similar
     to InfoExtractor objects. And it can receive parameters from CLI trough
-    --pp-params.
+    --postprocessor-args.
     """
 
     _downloader = None
 
-    def __init__(self, downloader=None):
+    def __init__(self, downloader=None, extra_cmd_args=None):
+        self._extra_cmd_args = shlex.split(extra_cmd_args or '')
         self._downloader = downloader
 
     def set_downloader(self, downloader):