aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [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
* [jsinterp] Handle `Date` at epoch 0pukkandan2023-03-031-0/+4
| | | | Closes #6400
* [dependencies] Simplify `Cryptodome`pukkandan2023-02-281-2/+2
| | | | Closes #6292, closes #6272, closes #6338
* Update to ytdl-commit-2dd6c6epukkandan2023-02-172-7/+14
| | | | | | | | | | [YouTube] Avoid crash if uploader_id extraction fails https://github.com/ytdl-org/youtube-dl/commit/2dd6c6edd8e0fc5e45865b8e6d865e35147de772 Except: * 295736c9cba714fb5de7d1c3dd31d86e50091cf8 [jsinterp] Improve parsing * 384f632e8a9b61e864a26678d85b2b39933b9bae [ITV] Overhaul ITV extractor * 33db85c571304bbd6863e3407ad8d08764c9e53b [feat]: Add support to external downloader aria2p
* [utils] `traverse_obj`: Fix more bugsSimon Sawicki2023-02-101-27/+48
| | | | | | and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
* [utils] `traverse_obj`: Fix several behavioral problemsSimon Sawicki2023-02-081-16/+27
| | | | | See #6180 for further info Authored by: Grub4K
* [dependencies] Standardize `Cryptodome` importspukkandan2023-02-082-3/+6
|
* [utils] `traverse_obj`: Various improvementsSimon Sawicki2023-02-021-0/+40
| | | | | | | | - Add `set` key for transformations/filters - Add `re.Match` group names - Fix behavior for `expected_type` with `dict` key - Raise for filter function signature mismatch in debug Authored by: Grub4K
* [jsinterp] Support `if` statementspukkandan2023-02-012-0/+36
| | | | Closes #6131
* Fix config locations (#5933)Simon Sawicki2023-01-071-0/+227
| | | | | | Bug in 8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55 Closes #5953 Authored by: Grub4k, coletdjnz, pukkandan
* Improve plugin architecture (#5553)Matthew2023-01-017-0/+114
| | | | | | | | | | | | | | | | | to make plugins easier to develop and use: * Plugins are now loaded as namespace packages. * Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.). * Plugin packages can be installed and managed via pip, or dropped into any of the documented locations. * Users do not need to edit any code files to install plugins. * Backwards-compatible with previous plugin architecture. As a side-effect, yt-dlp will now search in a few more locations for config files. Closes https://github.com/yt-dlp/yt-dlp/issues/1389 Authored by: flashdagger, coletdjnz, pukkandan, Grub4K Co-authored-by: Marcel <flashdagger@googlemail.com> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
* Add `weba` to known extensionspukkandan2022-12-301-0/+2
|
* [utils] js_to_json: Fix bug in f55523c (#5771)ChillingPepper2022-12-301-0/+79
| | | Authored by: ChillingPepper, pukkandan
* [extractor] Deprecate `_sort_formats`pukkandan2022-11-172-33/+20
|
* [cleanup] Miscpukkandan2022-11-161-1/+2
| | | | Closes #5541
* [cleanup] MiscRobert Geislinger2022-11-111-8/+5
| | | | | | Closes #5471, Closes #5312 Authored by: pukkandan, Alienmaster
* [test] Allow `extract_flat` in download testspukkandan2022-11-102-3/+10
| | | | Authored by: coletdjnz, pukkandan
* [extractor/youtube:tab] Update tab handling for redesign (#5439)Matthew2022-11-091-0/+13
| | | | Closes #5432, #5430, #5419 Authored by: coletdjnz, pukkandan
* [cleanup] Lint and misc cleanuppukkandan2022-11-071-2/+2
|