ExecAfterDownloadPP, YoutubeDL: remove unused parameters
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 10 May 2015 15:41:11 +0000 (17:41 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 10 May 2015 15:41:11 +0000 (17:41 +0200)
youtube_dl/YoutubeDL.py
youtube_dl/__init__.py
youtube_dl/postprocessor/execafterdownload.py

index d8583a8eb4db5c6589e12e6497cc66e7171c30c8..4cf83c510496f805da8174707d6b3f37d0aed146 100755 (executable)
@@ -260,7 +260,6 @@ class YoutubeDL(object):
     The following options are used by the post processors:
     prefer_ffmpeg:     If True, use ffmpeg instead of avconv if both are available,
                        otherwise prefer avconv.
-    exec_cmd:          Arbitrary command to run after downloading
     """
 
     params = None
index c88489f2989a70f8daaf1f8899c8788495091afa..9cc9f851f41b0259d99cf1751050ae0ba2e10e3c 100644 (file)
@@ -246,7 +246,6 @@ def _real_main(argv=None):
     if opts.exec_cmd:
         postprocessors.append({
             'key': 'ExecAfterDownload',
-            'verboseOutput': opts.verbose,
             'exec_cmd': opts.exec_cmd,
         })
     if opts.xattr_set_filesize:
@@ -345,7 +344,6 @@ def _real_main(argv=None):
         'default_search': opts.default_search,
         'youtube_include_dash_manifest': opts.youtube_include_dash_manifest,
         'encoding': opts.encoding,
-        'exec_cmd': opts.exec_cmd,
         'extract_flat': opts.extract_flat,
         'merge_output_format': opts.merge_output_format,
         'postprocessors': postprocessors,
index 3414375751642c6cea7e6e79cdf81c786f114284..765fd8fe4cc23aebff51604da76f4b7d49c8379f 100644 (file)
@@ -8,8 +8,7 @@ from ..utils import PostProcessingError
 
 
 class ExecAfterDownloadPP(PostProcessor):
-    def __init__(self, downloader=None, verboseOutput=None, exec_cmd=None):
-        self.verboseOutput = verboseOutput
+    def __init__(self, downloader=None, exec_cmd=None):
         self.exec_cmd = exec_cmd
 
     def run(self, information):