From cae285cd9f51a3732072f639d5167517d0364fd8 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 9 Feb 2025 04:51:17 -0500 Subject: [PATCH] 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. --- tubesync/sync/youtube.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index fd3795a1..a832b8ce 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -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(