mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[sponskrub] Pass proxy to sponskrub
Needs atleast sponskrub version: faissaloo/sponskrub 3.7.0 OR yt-dlp/sponskrub 2021.03.15
This commit is contained in:
parent
5aeefbd633
commit
d034ab669c
@ -6,6 +6,7 @@
|
|||||||
from ..compat import compat_shlex_split
|
from ..compat import compat_shlex_split
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
check_executable,
|
check_executable,
|
||||||
|
cli_option,
|
||||||
encodeArgument,
|
encodeArgument,
|
||||||
encodeFilename,
|
encodeFilename,
|
||||||
shell_quote,
|
shell_quote,
|
||||||
@ -70,6 +71,7 @@ def run(self, information):
|
|||||||
cmd = [self.path]
|
cmd = [self.path]
|
||||||
if not self.cutout:
|
if not self.cutout:
|
||||||
cmd += ['-chapter']
|
cmd += ['-chapter']
|
||||||
|
cmd += cli_option(self._downloader.params, '-proxy', 'proxy')
|
||||||
cmd += compat_shlex_split(self.args) # For backward compatibility
|
cmd += compat_shlex_split(self.args) # For backward compatibility
|
||||||
cmd += self._configuration_args(self._exe_name, use_compat=False)
|
cmd += self._configuration_args(self._exe_name, use_compat=False)
|
||||||
cmd += ['--', information['id'], filename, temp_filename]
|
cmd += ['--', information['id'], filename, temp_filename]
|
||||||
|
Loading…
Reference in New Issue
Block a user