aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-10-15[rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` ↵Simon Sawicki
(Fix 8a8b54523addf46dfd50ef599761a81bc22362e6) (#8348) Authored by: bashonly, coletdjnz, Grub4K
2023-10-13[rh:requests] Add handler for `requests` HTTP library (#3668)coletdjnz
Adds support for HTTPS proxies and persistent connections (keep-alive) Closes https://github.com/yt-dlp/yt-dlp/issues/1890 Resolves https://github.com/yt-dlp/yt-dlp/issues/4070 Resolves https://github.com/ytdl-org/youtube-dl/issues/32549 Resolves https://github.com/ytdl-org/youtube-dl/issues/14523 Resolves https://github.com/ytdl-org/youtube-dl/issues/13734 Authored by: coletdjnz, Grub4K, bashonly
2023-10-08[utils] `js_to_json`: Fix `Date` constructor parsing (#8295)Awal Garg
Authored by: awalgarg, Grub4K
2023-09-24[cleanup] MiscSimon Sawicki
Authored by: Grub4K
2023-09-24[core] Prevent RCE when using `--exec` with `%q` (CVE-2023-40581)Simon Sawicki
The shell escape function is now using `""` instead of `\"`. `utils.Popen` has been patched to properly quote commands. Prior to this fix using `--exec` together with `%q` when on Windows could cause remote code to execute. See https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-42h4-v29r-42qg for reference. Authored by: Grub4K
2023-09-24[core] Raise minimum recommended Python version to 3.8 (#8183)Simon Sawicki
Authored by: Grub4K
2023-09-23[cleanup] Misc (#8182)bashonly
Closes #7796, Closes #8028 Authored by: barsnick, sqrtNOT, gamer191, coletdjnz, Grub4K, bashonly
2023-09-21[test:download] Test for `expected_exception`bashonly
Authored by: at-wat Co-authored-by: Atsushi Watanabe <atsushi.w@ieee.org>
2023-09-21[utils] `js_to_json`: Handle `Array` objectsbashonly
Authored by: Grub4K, std-move Co-authored-by: std-move <26625259+std-move@users.noreply.github.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
2023-09-18[networking] Fix various socks proxy bugs (#8065)coletdjnz
- Fixed support for IPv6 socks proxies - Fixed support for IPv6 over socks5 - Fixed --source-address not being obeyed for socks4 and socks5 - Fixed socks4a when the destination address is an IPv4 address Closes https://github.com/yt-dlp/yt-dlp/issues/7959 Fixes https://github.com/ytdl-org/youtube-dl/issues/15368 Authored by: coletdjnz Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <bashonly@bashonly.com>
2023-08-25[tests] Add tests for socks proxies (#7908)coletdjnz
Authored by: coletdjnz
2023-08-04[networking] Add request handler preference framework (#7603)coletdjnz
Preference functions that take a request and a request handler instance can be registered to prioritize different request handlers per request. Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-07-30[cleanup] Miscpukkandan
2023-07-30[utils] HTTPHeaderDict: Handle byte valuespukkandan
2023-07-29[test] Fix `test_load_certifi`pukkandan
Closes #7688, #7675
2023-07-28[networking] Remove dot segments during URL normalization (#7662)coletdjnz
This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
2023-07-27[networking] Ignore invalid proxies in env (#7704)coletdjnz
Authored by: coletdjnz
2023-07-24[test] Fix `httplib_validation_errors` test for old Python versions (#7677)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/7674 Authored by: coletdjnz
2023-07-23[networking] Add strict Request extension checking (#7604)coletdjnz
Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-07-22[compat] Ensure submodules are imported correctlypukkandan
Closes #7663
2023-07-22[cleanup] Misc fixespukkandan
Closes #7528
2023-07-22[outtmpl] Fix replacement for `playlist_index`pukkandan
2023-07-22[fd/external] Fix ffmpeg input from stdin (#7655)bashonly
Bugfix for 1ceb657bdd254ad961489e5060f2ccc7d556b729 Authored by: bashonly
2023-07-20[utils] Improve `parse_duration`bashonly
Authored by: bashonly
2023-07-20[networking] Fix `--legacy-server-connect` (#7645)bashonly
Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
2023-07-20[networking] Fix POST requests with zero-length payloads (#7648)bashonly
Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
2023-07-15[fd/external] Fixes to cookie handlingbashonly
- Fix bug in `axel` Cookie header arg - Pass cookies to `curl` as strings - Write session cookies for `aria2c` and `wget` Closes #7539 Authored by: bashonly
2023-07-15[core] Fix HTTP headers and cookie handlingbashonly
- Remove `Cookie` header from `http_headers` immediately after loading into cookiejar - Restore compat for `--load-info-json` cookies - Add more tests - Fix improper passing of Cookie header by `MailRu` extractor Closes #7558 Authored by: bashonly, pukkandan
2023-07-15[compat, networking] Deprecate old functions (#2861)coletdjnz
Authored by: coletdjnz, pukkandan
2023-07-15[networking] Rewrite architecture (#2861)coletdjnz
New networking interface consists of a `RequestDirector` that directs each `Request` to appropriate `RequestHandler` and returns the `Response` or raises `RequestError`. The handlers define adapters to transform its internal Request/Response/Errors to our interfaces. User-facing changes: - Fix issues with per request proxies on redirects for urllib - Support for `ALL_PROXY` environment variable for proxy setting - Support for `socks5h` proxy - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093 - Raise error when using `https` proxy instead of silently converting it to `http` Authored by: coletdjnz
2023-07-15[networking] Add module (#2861)pukkandan
No actual changes - code is only moved around
2023-07-15[utils] Add temporary shim for loggingpukkandan
Related: #5680, #7517
2023-07-11[utils] `clean_podcast_url`: Handle more trackers (#7556)Mahmoud Abdel-Fattah
Authored by: mabdelfattah, bashonly Closes #7544
2023-07-06[core] Change how `Cookie` headers are handledSimon Sawicki
Cookies are now saved and loaded under `cookies` key in the info dict instead of `http_headers.Cookie`. Cookies passed in headers are auto-scoped to the input URLs with a warning. Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj Authored by: Grub4K
2023-07-06[core] Prevent `Cookie` leaks on HTTP redirectcoletdjnz
Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj Authored by: coletdjnz
2023-07-06[fd/external] Scope cookiesbashonly
- 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
2023-07-06[outtmpl] Pad `playlist_index` etc even when with internal formattingpukkandan
Closes #7501
2023-06-22[extractor/youtube] Improve nsig function name extractionpukkandan
2023-06-21Update to ytdl-commit-07af47pukkandan
[YouTube] Improve fix for ae8ba2c https://github.com/ytdl-org/youtube-dl/commit/07af47960f3bb262ead02490ce65c8c45c01741e
2023-06-21Bugfix for ebe1b4e34f43c3acad30e4bcb8484681a030c114pukkandan
2023-06-21[cleanup] Miscpukkandan
Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
2023-06-21[outtmpl] Fix some minor bugspukkandan
Closes #7164
2023-06-21[utils] `FormatSorter`: Improve `size` and `br`pukkandan
Closes #1596 Previously, when some formats have accurate size and some approximate, the ones with accurate size was always prioritized For formats with known tbr and unknown vbr/abr, we were setting (vbr=tbr, abr=0) for sorting to work. This is no longer needed. Authored by pukkandan, u-spec-png
2023-06-18[jsinterp] Fix global object extractionpukkandan
Closes #7327
2023-06-10[jsinterp] Fix division (#7279)bashonly
* Fixes nsig decryption for Youtube JS player `8c7583ff` Authored by: bashonly
2023-05-29[cookies] Update for chromium changes (#6897)Matt Broadway
Authored by: mbway
2023-05-27[core] Support decoding multiple content encodings (#7142)coletdjnz
Authored by: coletdjnz
2023-05-27[cookies] Move `YoutubeDLCookieJar` to cookies module (#7091)coletdjnz
Authored by: coletdjnz
2023-05-27[core] Improve HTTP redirect handling (#7094)coletdjnz
Aligns HTTP redirect handling with what browsers commonly do and RFC standards. Fixes issues https://github.com/yt-dlp/yt-dlp/commit/afac4caa7db30804bebac33e53c3cb0237958224 missed. Authored by: coletdjnz
2023-05-24[jsinterp] Do not compile regexpukkandan