]> jfr.im git - yt-dlp.git/commitdiff
[sponskrub] Pass proxy to sponskrub
authorpukkandan <redacted>
Mon, 15 Mar 2021 00:57:21 +0000 (06:27 +0530)
committerpukkandan <redacted>
Mon, 15 Mar 2021 00:57:21 +0000 (06:27 +0530)
Needs atleast sponskrub version:
    faissaloo/sponskrub 3.7.0
    OR yt-dlp/sponskrub 2021.03.15

yt_dlp/postprocessor/sponskrub.py

index 4ba33398ea3ecf2fed89d24ad5de0d28d888aae5..a55f4150beab36bc144659b0921c2f92c144abdf 100644 (file)
@@ -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]