]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/postprocessor/common.py
Tidy up cleanup rule and keep lintian happy.
[youtubedl] / youtube_dl / postprocessor / common.py
index 3b0e8ddd8bfed92f2e9043b0adea2655a9e5f67b..599dd1df2b2fa16b05548ef847d41b3d6d7c9560 100644 (file)
@@ -4,6 +4,7 @@ import os
 
 from ..utils import (
     PostProcessingError,
 
 from ..utils import (
     PostProcessingError,
+    cli_configuration_args,
     encodeFilename,
 )
 
     encodeFilename,
 )
 
@@ -23,6 +24,9 @@ class PostProcessor(object):
 
     PostProcessor objects follow a "mutual registration" process similar
     to InfoExtractor objects.
 
     PostProcessor objects follow a "mutual registration" process similar
     to InfoExtractor objects.
+
+    Optionally PostProcessor can use a list of additional command-line arguments
+    with self._configuration_args.
     """
 
     _downloader = None
     """
 
     _downloader = None
@@ -57,6 +61,9 @@ class PostProcessor(object):
         except Exception:
             self._downloader.report_warning(errnote)
 
         except Exception:
             self._downloader.report_warning(errnote)
 
+    def _configuration_args(self, default=[]):
+        return cli_configuration_args(self._downloader.params, 'postprocessor_args', default)
+
 
 class AudioConversionError(PostProcessingError):
     pass
 
 class AudioConversionError(PostProcessingError):
     pass