1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-24 02:15:12 +00:00

[ffmpeg] Allow passing custom arguments before -i

:ci skip dl
This commit is contained in:
pukkandan
2021-02-24 21:35:18 +05:30
parent e409895f13
commit 5b1ecbb327
7 changed files with 42 additions and 34 deletions

View File

@@ -91,11 +91,10 @@ class PostProcessor(object):
except Exception:
self.report_warning(errnote)
def _configuration_args(self, default=[], exe=None):
key = self.pp_key().lower()
args, is_compat = cli_configuration_args(
self._downloader.params, 'postprocessor_args', key, default, exe)
return args if not is_compat or key != 'sponskrub' else default
def _configuration_args(self, *args, **kwargs):
return cli_configuration_args(
self._downloader.params.get('postprocessor_args'),
self.pp_key().lower(), *args, **kwargs)
class AudioConversionError(PostProcessingError):