aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Add tests for socks proxies (#7908)coletdjnz2023-08-253-98/+460
| | | Authored by: coletdjnz
* [networking] Add request handler preference framework (#7603)coletdjnz2023-08-041-4/+25
| | | | | | 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>
* [cleanup] Miscpukkandan2023-07-302-3/+6
|
* [utils] HTTPHeaderDict: Handle byte valuespukkandan2023-07-301-0/+2
|
* [test] Fix `test_load_certifi`pukkandan2023-07-291-9/+12
| | | | Closes #7688, #7675
* [networking] Remove dot segments during URL normalization (#7662)coletdjnz2023-07-282-9/+54
| | | | | | | This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
* [networking] Ignore invalid proxies in env (#7704)coletdjnz2023-07-271-3/+5
| | | Authored by: coletdjnz
* [test] Fix `httplib_validation_errors` test for old Python versions (#7677)coletdjnz2023-07-241-15/+24
| | | | | Fixes https://github.com/yt-dlp/yt-dlp/issues/7674 Authored by: coletdjnz
* [networking] Add strict Request extension checking (#7604)coletdjnz2023-07-231-18/+36
| | | | Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* [compat] Ensure submodules are imported correctlypukkandan2023-07-221-3/+3
| | | | Closes #7663
* [cleanup] Misc fixespukkandan2023-07-222-8/+7
| | | | Closes #7528
* [outtmpl] Fix replacement for `playlist_index`pukkandan2023-07-221-0/+1
|
* [fd/external] Fix ffmpeg input from stdin (#7655)bashonly2023-07-221-0/+5
| | | | | Bugfix for 1ceb657bdd254ad961489e5060f2ccc7d556b729 Authored by: bashonly
* [utils] Improve `parse_duration`bashonly2023-07-201-0/+2
| | | | Authored by: bashonly
* [networking] Fix `--legacy-server-connect` (#7645)bashonly2023-07-201-1/+1
| | | | | Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
* [networking] Fix POST requests with zero-length payloads (#7648)bashonly2023-07-201-0/+11
| | | | | Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
* [fd/external] Fixes to cookie handlingbashonly2023-07-151-4/+5
| | | | | | | | | - 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
* [core] Fix HTTP headers and cookie handlingbashonly2023-07-152-8/+85
| | | | | | | | | | - 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
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-153-25/+68
| | | | Authored by: coletdjnz, pukkandan
* [networking] Rewrite architecture (#2861)coletdjnz2023-07-154-276/+1379
| | | | | | | | | | | | | | | | 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
* [networking] Add module (#2861)pukkandan2023-07-152-9/+9
| | | | No actual changes - code is only moved around
* [utils] Add temporary shim for loggingpukkandan2023-07-151-11/+1
| | | | Related: #5680, #7517
* [utils] `clean_podcast_url`: Handle more trackers (#7556)Mahmoud Abdel-Fattah2023-07-111-0/+2
| | | | Authored by: mabdelfattah, bashonly Closes #7544
* [core] Change how `Cookie` headers are handledSimon Sawicki2023-07-061-0/+56
| | | | | | | | | | 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
* [core] Prevent `Cookie` leaks on HTTP redirectcoletdjnz2023-07-061-0/+31
| | | | | | Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj Authored by: coletdjnz
* [fd/external] Scope cookiesbashonly2023-07-061-0/+133
| | | | | | | | | | | | - 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
* [outtmpl] Pad `playlist_index` etc even when with internal formattingpukkandan2023-07-061-1/+1
| | | | Closes #7501
* [extractor/youtube] Improve nsig function name extractionpukkandan2023-06-221-0/+4
|
* Update to ytdl-commit-07af47pukkandan2023-06-211-0/+26
| | | | | [YouTube] Improve fix for ae8ba2c https://github.com/ytdl-org/youtube-dl/commit/07af47960f3bb262ead02490ce65c8c45c01741e
* Bugfix for ebe1b4e34f43c3acad30e4bcb8484681a030c114pukkandan2023-06-211-0/+2
|
* [cleanup] Miscpukkandan2023-06-213-37/+48
| | | | | Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
* [outtmpl] Fix some minor bugspukkandan2023-06-211-1/+1
| | | | Closes #7164
* [utils] `FormatSorter`: Improve `size` and `br`pukkandan2023-06-211-10/+0
| | | | | | | | | | | | 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
* [jsinterp] Fix global object extractionpukkandan2023-06-181-1/+6
| | | | Closes #7327
* [jsinterp] Fix division (#7279)bashonly2023-06-102-0/+11
| | | | | * Fixes nsig decryption for Youtube JS player `8c7583ff` Authored by: bashonly
* [cookies] Update for chromium changes (#6897)Matt Broadway2023-05-291-6/+12
| | | Authored by: mbway
* [core] Support decoding multiple content encodings (#7142)coletdjnz2023-05-271-0/+76
| | | Authored by: coletdjnz
* [cookies] Move `YoutubeDLCookieJar` to cookies module (#7091)coletdjnz2023-05-271-1/+7
| | | Authored by: coletdjnz
* [core] Improve HTTP redirect handling (#7094)coletdjnz2023-05-272-36/+262
| | | | | | | 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
* [jsinterp] Do not compile regexpukkandan2023-05-241-1/+3
|
* Update to ytdl-commit-d1c6c5pukkandan2023-05-242-6/+58
| | | | | | | | | | | [YouTube] [core] Improve platform debug log, based on yt-dlp https://github.com/ytdl-org/youtube-dl/commit/d1c6c5c4d618fa950813c0c71aede34a5ac851e9 Except: * 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression * There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641 * e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs * We plan to implement this differently
* [cleanup] Miscpukkandan2023-05-203-367/+207
| | | | Closes #7030, closes #6967
* [jsinterp] Handle `NaN` in bitwise operatorspukkandan2023-05-202-0/+14
| | | | Closes #6131
* [utils] `traverse_obj`: More fixes (#6959)Simon Sawicki2023-04-301-2/+19
| | | | | | | | - Fix result when branching with `traverse_string` - Fix `slice` path on `dict`s - Fix tests and docstrings from 21b5ec86c2c37d10c5bb97edd7051d3aac16bb3e - Add `is_iterable_like` helper function Authored by: Grub4K
* [jsinterp] Handle negative numbers betterpukkandan2023-04-272-0/+20
| | | | Closes #6131
* [utils] `traverse_obj`: Allow iterables in traversal (#6902)Simon Sawicki2023-04-241-0/+4
| | | Authored by: Grub4K
* [outtmpl] Support `str.format` syntax inside replacementspukkandan2023-04-241-1/+4
| | | | Closes #6843
* [outtmpl] Allow `\n` in replacements and default.pukkandan2023-04-241-0/+1
| | | | | Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510055357 Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510363645
* [utils] `js_to_json`: Implement template strings (#6623)Simon Sawicki2023-03-251-0/+7
| | | Authored by: Grub4K
* [extractor] Extract more metadata from ISMpukkandan2023-03-251-80/+36
| | | | Fixes https://github.com/yt-dlp/yt-dlp/commit/81b6102d2099eec78a2db9ae3d101a8503dd4f25#r105892531