]> jfr.im git - yt-dlp.git/commit
[fd/external] Scope cookies
authorbashonly <redacted>
Wed, 5 Jul 2023 20:16:28 +0000 (15:16 -0500)
committerpukkandan <redacted>
Thu, 6 Jul 2023 17:44:38 +0000 (23:14 +0530)
commit1ceb657bdd254ad961489e5060f2ccc7d556b729
tree15036d93f7b614adfa252a20120968e80bb587c5
parentad8902f616ad2541f9b9626738f1393fad89a64c
[fd/external] Scope cookies

- ffmpeg: Calculate cookies from cookiejar and pass with `-cookies` arg instead of `-headers`
- aria2c, curl, wget: Write cookiejar to file and use external FD built-in cookiejar support
- httpie: Calculate cookies from cookiejar instead of `http_headers`
- axel: Calculate cookies from cookiejar and disable http redirection if cookies are passed
    - May break redirects, but axel simply don't have proper cookie support

Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj

Authored by: bashonly, coletdjnz
test/test_downloader_external.py [new file with mode: 0644]
yt_dlp/cookies.py
yt_dlp/downloader/external.py