From d034ab669cd4f2ab119cac8a1d7cea8a75d4251a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 15 Mar 2021 06:27:21 +0530 Subject: [PATCH] [sponskrub] Pass proxy to sponskrub Needs atleast sponskrub version: faissaloo/sponskrub 3.7.0 OR yt-dlp/sponskrub 2021.03.15 --- yt_dlp/postprocessor/sponskrub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/postprocessor/sponskrub.py b/yt_dlp/postprocessor/sponskrub.py index 4ba33398e..a55f4150b 100644 --- a/yt_dlp/postprocessor/sponskrub.py +++ b/yt_dlp/postprocessor/sponskrub.py @@ -6,6 +6,7 @@ from ..compat import compat_shlex_split from ..utils import ( check_executable, + cli_option, encodeArgument, encodeFilename, shell_quote, @@ -70,6 +71,7 @@ def run(self, information): cmd = [self.path] if not self.cutout: cmd += ['-chapter'] + cmd += cli_option(self._downloader.params, '-proxy', 'proxy') cmd += compat_shlex_split(self.args) # For backward compatibility cmd += self._configuration_args(self._exe_name, use_compat=False) cmd += ['--', information['id'], filename, temp_filename]