mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
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:
parent
8d89cc01f9
commit
cae285cd9f
@ -224,6 +224,10 @@ def download_media(
|
|||||||
'sponskrub': False,
|
'sponskrub': False,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
pp_opts.exec_cmd.update(
|
||||||
|
opts.get('exec_cmd', default_opts.exec_cmd)
|
||||||
|
)
|
||||||
|
|
||||||
if skip_sponsors:
|
if skip_sponsors:
|
||||||
# Let yt_dlp convert from human for us.
|
# Let yt_dlp convert from human for us.
|
||||||
pp_opts.sponsorblock_mark = yt_dlp.parse_options(
|
pp_opts.sponsorblock_mark = yt_dlp.parse_options(
|
||||||
|
Loading…
Reference in New Issue
Block a user