Simplify postprocessor_args transmission to PP base class

* Remove `extra_cmd_args` transmission from sub to super class.
* Simplify params transmission through `downloader.params`.
This commit is contained in:
Aurélio A. Heckert 2015-07-01 20:12:26 -03:00
parent 1866432db7
commit aa5d9a79d6
3 changed files with 7 additions and 8 deletions

View file

@ -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):