diff options
| author | Aurélio A. Heckert <aurelio@colivre.coop.br> | 2015-07-01 20:12:26 -0300 | 
|---|---|---|
| committer | Aurélio A. Heckert <aurelio@colivre.coop.br> | 2015-07-01 20:12:26 -0300 | 
| commit | aa5d9a79d6b5c354ee4a6bfbb43f94c2485ab9b4 (patch) | |
| tree | 392263ff61b8aedda48947d327ace01950c33a0b /youtube_dl/postprocessor/ffmpeg.py | |
| parent | 1866432db74946c2b66263d38ed2c9d9d7e3177d (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/ffmpeg.py')
| -rw-r--r-- | youtube_dl/postprocessor/ffmpeg.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 891c72769..de8c225da 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -29,8 +29,8 @@ class FFmpegPostProcessorError(PostProcessingError):  class FFmpegPostProcessor(PostProcessor): -    def __init__(self, downloader=None, extra_cmd_args=None): -        PostProcessor.__init__(self, downloader, extra_cmd_args) +    def __init__(self, downloader=None): +        PostProcessor.__init__(self, downloader)          self._determine_executables()      def check_version(self): @@ -287,8 +287,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):  class FFmpegVideoConvertorPP(FFmpegPostProcessor): -    def __init__(self, downloader=None, preferedformat=None, extra_cmd_args=None): -        super(FFmpegVideoConvertorPP, self).__init__(downloader, extra_cmd_args) +    def __init__(self, downloader=None, preferedformat=None): +        super(FFmpegVideoConvertorPP, self).__init__(downloader)          self._preferedformat = preferedformat      def run(self, information): | 
