Commit Graph

1338 Commits (7ea2787920cccc6b8ea30791993d114fbd564434)

Author SHA1 Message Date
sepro f95a92b3d0
[cleanup] Deprecate more compat functions ()
Authored by: seproDev
Simon Sawicki c014fbcddc
[utils] `subs_list_to_dict`: Add `lang` default parameter ()
Authored by: Grub4K
Simon Sawicki 39d79c9b9c
[utils] Fix `join_nonempty`, add `**kwargs` to `unpack` ()
Authored by: Grub4K
sepro 197d0b03b6
[cleanup] Misc ()
Closes 
Authored by: avagordon01, bashonly, grqz, Grub4K, seproDev

Co-authored-by: Ava Gordon <avagordon01@gmail.com>
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com>
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Evgeny Zislis 4613096f2e
[cookies] Support chrome table version 24 ()
Closes 
Authored by: kesor, seproDev

Co-authored-by: sepro <sepro@sepr0.com>
sepro beae2db127
[aes] Fix GCM pad length calculation ()
Closes 
Authored by: seproDev
bashonly b103aca24d
[utils] Fix and improve `find_element` and `find_elements` ()
Fix d710a6ca7c

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 422195ec70
[utils] Allow partial application for even more functions ()
Fixes b6dc2c49e8

Authored by: Grub4K
bashonly b6dc2c49e8
[utils] Allow partial application for more functions ()
Also adds the `trim_str` traversal helper

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
bashonly 88402b714e Fix `--netrc` empty string parsing for Python <=3.10 ()
Ref: 15409c720b

Closes 
Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
bashonly d784464399
Remove Python 3.8 support ()
Closes 
Authored by: bashonly
Imran Hussain 0f593dca9f
Add option `--plugin-dirs` ()
Closes 
Authored by: imranh2, coletdjnz

Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
Simon Sawicki d710a6ca7c
Add extractor helpers ()
Authored by: Grub4K
Simon Sawicki 85b87c991a
[utils] `sanitize_path`: Reimplement function ()
Authored by: Grub4K
rakslice 8f4ea14680
Fix format sorting bug with vp9.2 vcodec ()
Authored by: rakslice
coletdjnz d1c4d88b2d
[networking] Fix handler not being added to RequestError ()
Authored by: coletdjnz
coletdjnz 6f9e653743
[rh:websockets] Upgrade websockets to 13.0 ()
Fixes CI hanging

Authored by: coletdjnz
sepro c86891eb94
[ie/youtube] Fix `n` function name extraction for player `b12cc44b` ()
Authored by: seproDev
sepro bb8bf1db99
[jsinterp] Improve `slice` implementation ()
Authored by: seproDev
bashonly 011b4a04db
[ie/youtube] Fix `n` function name extraction for player `20dfca59` ()
Closes 
Authored by: bashonly
bashonly 6daf2c27c0
[utils] `unified_timestamp`: Recognize Sunday ()
Authored by: bashonly
bashonly 713b4cd18f
[ie/youtube] Fix `n` function name extraction for player `3400486c` ()
Authored by: bashonly
bashonly cc0070f649 [utils] `parse_codecs`: Fix parsing of mixed case codec strings
Authored by: bashonly
coletdjnz 150ecc45d9
[networking] Add `legacy_ssl` request extension ()
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI.

Also added couple cookie-related tests.

Authored by: coletdjnz
coletdjnz 42bfca00a6 [rh:curl_cffi] Support `curl_cffi` 0.7.X
Authored by: coletdjnz
sepro 0b570f2a90
[core] Do not alter default format selection when simulated ()
Closes 
Authored by: seproDev
bashonly 297b0a3792
[ie/youtube] Fix JS `n` function name extraction ()
Fixes nsig decoding for player b22ef6e7

Closes 
Authored by: bashonly, seproDev

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Simon Sawicki 6c056ea7ae
[jsinterp] Implement `Function.prototype` resolving for `call` and `apply` ()
Authored by: Grub4K
Simon Sawicki 5ce582448e
[core] Disallow unsafe extensions (CVE-2024-38519)
Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j

Authored by: Grub4K
bashonly 6aaf96a3d6
[cleanup] Misc ()
Closes 
Authored by: bashonly, seproDev, jucor, c-basalt

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: Julien Cornebise <julien@cornebise.com>
Co-authored-by: c-basalt <117849907+c-basalt@users.noreply.github.com>
bashonly 54a63e80af
[test:download] Raise on network errors ()
Authored by: bashonly, seproDev
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Peisen Wang a8520244b8
[cookies] Fix `--cookies-from-browser` DE detection on Linux ()
Align with chromium source by parsing every part of `XDG_CURRENT_DESKTOP`

Authored by: peisenwang
sepro add96eb9f8
[cleanup] Add more ruff rules ()
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 5c019f6328
[misc] Cleanup ()
Closes 
Authored by: bashonly, seproDev, Grub4K

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
coletdjnz 96a134dea6
[ie/youtube] Extract upload timestamp if available ()
Closes , Closes 
Authored by: coletdjnz
Simon Sawicki e897bd8292
[misc] Add `hatch`, `ruff`, `pre-commit` and improve dev docs ()
Authored by: bashonly, seproDev, Grub4K

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
coletdjnz 53b4d44f55
[test] Fix connect timeout test ()
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659

Authored by: coletdjnz
coletdjnz 3c7a287e28
[test] Add HTTP proxy tests ()
Also fixes HTTPS proxies for curl_cffi

Authored by: coletdjnz
bashonly bec9a59e8e
[networking] Add `extensions` attribute to `Response` ()
CurlCFFIRH now provides an `impersonate` field in its responses' extensions

Authored by: bashonly
Simon Sawicki 7e26bd53f9
[core/windows] Fix tests for `sys.executable` with spaces (Fix for 64766459e3)
Authored by: Grub4K
Simon Sawicki 64766459e3
[core/windows] Improve shell quoting and tests ()
Authored by: Grub4K
Simon Sawicki 3ee1194288
[ie] Make `_search_nextjs_data` non fatal ()
Authored by: Grub4K
Simon Sawicki ff07792676
[core] Prevent RCE when using `--exec` with `%q` (CVE-2024-22423)
The shell escape function now properly escapes `%`, `\\` and `\n`. `utils.Popen` as well as `%q` output template expansion have been patched accordingly.

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-hjq6-52gw-2g7p for more details.

Authored by: Grub4K
bashonly 216f6a3cb5
[cleanup] Misc ()
Authored by: bashonly, pukkandan
Simon Sawicki 32abfb00bd
[utils] `traverse_obj`: Convenience improvements ()
Add support for:
- `http.cookies.Morsel`
- Multi type filters (`{type, type}`)

Authored by: Grub4K
pukkandan c305a25c1b
[cleanup] Standardize `import datetime as dt` ()
pukkandan 86a972033e
Infer `acodec` for single-codec containers
Simon Sawicki 3699eeb67c
[utils] `traverse_obj`: Allow unbranching using `all` and `any` ()
Authored by: Grub4K
Simon Sawicki 979ce2e786
[test] `traversal`: Separate traversal tests ()
Authored by: Grub4K
coletdjnz 52f5be1f1e
[rh:curlcffi] Add support for `curl_cffi`
Authored by: coletdjnz, Grub4K, pukkandan, bashonly

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: bashonly <bashonly@protonmail.com>