mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 02:15:08 +00:00
feat(dl): add --proxy-download for a separate download proxy
Manifest, licence and auth stay on --proxy; track, subtitle and attachment downloads use the second proxy. Also exposed as proxy_download on the REST download job with the same server_proxy gate. The download session now ignores HTTP(S)_PROXY and copies rnet cookies set by name.
This commit is contained in:
@@ -247,6 +247,7 @@ class Subtitle(Track):
|
||||
*,
|
||||
cdm: Optional[object] = None,
|
||||
no_proxy_download: bool = False,
|
||||
proxy_download: Optional[str] = None,
|
||||
adaptive_workers: bool = False,
|
||||
download_processes: int = 1,
|
||||
):
|
||||
@@ -257,6 +258,7 @@ class Subtitle(Track):
|
||||
progress,
|
||||
cdm=cdm,
|
||||
no_proxy_download=no_proxy_download,
|
||||
proxy_download=proxy_download,
|
||||
adaptive_workers=adaptive_workers,
|
||||
download_processes=download_processes,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user