Allow exec_cmd dictionary to be configured in settings

This is a dictionary with keys of `WHEN` and values are a `list` of commands for the `ExecPP` to run.
This commit is contained in:
tcely 2025-02-09 04:51:17 -05:00 committed by GitHub
parent 8d89cc01f9
commit cae285cd9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,6 +224,10 @@ def download_media(
'sponskrub': False,
})
pp_opts.exec_cmd.update(
opts.get('exec_cmd', default_opts.exec_cmd)
)
if skip_sponsors:
# Let yt_dlp convert from human for us.
pp_opts.sponsorblock_mark = yt_dlp.parse_options(