1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-09 02:55:11 +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

@@ -105,9 +105,10 @@ class ExternalFD(FileDownloader):
def _valueless_option(self, command_option, param, expected_value=True):
return cli_valueless_option(self.params, command_option, param, expected_value)
def _configuration_args(self, default=[]):
def _configuration_args(self, *args, **kwargs):
return cli_configuration_args(
self.params, 'external_downloader_args', self.get_basename(), default)[0]
self.params.get('external_downloader_args'),
self.get_basename(), *args, **kwargs)
def _call_downloader(self, tmpfilename, info_dict):
""" Either overwrite this or implement _make_cmd """