aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/postprocessor/common.py
diff options
context:
space:
mode:
authorAurélio A. Heckert <aurelio@colivre.coop.br>2015-07-01 20:12:26 -0300
committerAurélio A. Heckert <aurelio@colivre.coop.br>2015-07-01 20:12:26 -0300
commitaa5d9a79d6b5c354ee4a6bfbb43f94c2485ab9b4 (patch)
tree392263ff61b8aedda48947d327ace01950c33a0b /youtube_dl/postprocessor/common.py
parent1866432db74946c2b66263d38ed2c9d9d7e3177d (diff)
Simplify `postprocessor_args` transmission to PP base class
* Remove `extra_cmd_args` transmission from sub to super class. * Simplify params transmission through `downloader.params`.
Diffstat (limited to 'youtube_dl/postprocessor/common.py')
-rw-r--r--youtube_dl/postprocessor/common.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/postprocessor/common.py b/youtube_dl/postprocessor/common.py
index c44501b59..bee64c457 100644
--- a/youtube_dl/postprocessor/common.py
+++ b/youtube_dl/postprocessor/common.py
@@ -1,7 +1,6 @@
from __future__ import unicode_literals
import os
-import shlex
from ..utils import (
PostProcessingError,
@@ -29,8 +28,8 @@ class PostProcessor(object):
_downloader = None
- def __init__(self, downloader=None, extra_cmd_args=None):
- self._extra_cmd_args = shlex.split(extra_cmd_args or '')
+ def __init__(self, downloader=None):
+ self._extra_cmd_args = downloader.params.get('postprocessor_args')
self._downloader = downloader
def set_downloader(self, downloader):