* Remove `extra_cmd_args` transmission from sub to super class.
* Simplify params transmission through `downloader.params`.
postprocessors.append({
'key': 'FFmpegVideoConvertor',
'preferedformat': opts.recodevideo,
- 'extra_cmd_args': opts.postprocessor_args,
})
if opts.convertsubtitles:
postprocessors.append({
'extract_flat': opts.extract_flat,
'merge_output_format': opts.merge_output_format,
'postprocessors': postprocessors,
+ 'postprocessor_args': shlex.split(opts.postprocessor_args or ''),
'fixup': opts.fixup,
'source_address': opts.source_address,
'call_home': opts.call_home,
from __future__ import unicode_literals
import os
-import shlex
from ..utils import (
PostProcessingError,
_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):
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):
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):