Simon Sawicki
39d79c9b9c
[utils] Fix `join_nonempty`, add `**kwargs` to `unpack` ( #11559 )
...
Authored by: Grub4K
9 months ago
sepro
197d0b03b6
[cleanup] Misc ( #11347 )
...
Closes #11361
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>
9 months ago
Evgeny Zislis
4613096f2e
[cookies] Support chrome table version 24 ( #11425 )
...
Closes #6564
Authored by: kesor, seproDev
Co-authored-by: sepro <sepro@sepr0.com>
9 months ago
sepro
beae2db127
[aes] Fix GCM pad length calculation ( #11438 )
...
Closes #10169
Authored by: seproDev
9 months ago
bashonly
b103aca24d
[utils] Fix and improve `find_element` and `find_elements` ( #11443 )
...
Fix d710a6ca7c
Authored by: bashonly, Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
9 months ago
Simon Sawicki
422195ec70
[utils] Allow partial application for even more functions ( #11437 )
...
Fixes b6dc2c49e8
Authored by: Grub4K
9 months ago
bashonly
b6dc2c49e8
[utils] Allow partial application for more functions ( #11391 )
...
Also adds the `trim_str` traversal helper
Authored by: bashonly, Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
9 months ago
bashonly
88402b714e
Fix `--netrc` empty string parsing for Python <=3.10 ( #11414 )
...
Ref: 15409c720b
Closes #11413
Authored by: bashonly, Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
9 months ago
bashonly
d784464399
Remove Python 3.8 support ( #11321 )
...
Closes #10086
Authored by: bashonly
9 months ago
Imran Hussain
0f593dca9f
Add option `--plugin-dirs` ( #11277 )
...
Closes #3260
Authored by: imranh2, coletdjnz
Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
9 months ago
Simon Sawicki
d710a6ca7c
Add extractor helpers ( #10653 )
...
Authored by: Grub4K
10 months ago
Simon Sawicki
85b87c991a
[utils] `sanitize_path`: Reimplement function ( #11198 )
...
Authored by: Grub4K
10 months ago
rakslice
8f4ea14680
Fix format sorting bug with vp9.2 vcodec ( #10884 )
...
Authored by: rakslice
10 months ago
coletdjnz
d1c4d88b2d
[networking] Fix handler not being added to RequestError ( #10955 )
...
Authored by: coletdjnz
11 months ago
coletdjnz
6f9e653743
[rh:websockets] Upgrade websockets to 13.0 ( #10815 )
...
Fixes CI hanging
Authored by: coletdjnz
11 months ago
sepro
c86891eb94
[ie/youtube] Fix `n` function name extraction for player `b12cc44b` ( #10668 )
...
Authored by: seproDev
12 months ago
sepro
bb8bf1db99
[jsinterp] Improve `slice` implementation ( #10664 )
...
Authored by: seproDev
12 months ago
bashonly
011b4a04db
[ie/youtube] Fix `n` function name extraction for player `20dfca59` ( #10611 )
...
Closes #10608
Authored by: bashonly
1 year ago
bashonly
6daf2c27c0
[utils] `unified_timestamp`: Recognize Sunday ( #10589 )
...
Authored by: bashonly
1 year ago
bashonly
713b4cd18f
[ie/youtube] Fix `n` function name extraction for player `3400486c` ( #10542 )
...
Authored by: bashonly
1 year ago
bashonly
cc0070f649
[utils] `parse_codecs`: Fix parsing of mixed case codec strings
...
Authored by: bashonly
1 year ago
coletdjnz
150ecc45d9
[networking] Add `legacy_ssl` request extension ( #10448 )
...
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI.
Also added couple cookie-related tests.
Authored by: coletdjnz
1 year ago
coletdjnz
42bfca00a6
[rh:curl_cffi] Support `curl_cffi` 0.7.X
...
Authored by: coletdjnz
1 year ago
sepro
0b570f2a90
[core] Do not alter default format selection when simulated ( #9862 )
...
Closes #9843
Authored by: seproDev
1 year ago
bashonly
297b0a3792
[ie/youtube] Fix JS `n` function name extraction ( #10390 )
...
Fixes nsig decoding for player b22ef6e7
Closes #10391
Authored by: bashonly, seproDev
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
1 year ago
Simon Sawicki
6c056ea7ae
[jsinterp] Implement `Function.prototype` resolving for `call` and `apply` ( #10392 )
...
Authored by: Grub4K
1 year ago
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
1 year ago
bashonly
6aaf96a3d6
[cleanup] Misc ( #10075 )
...
Closes #10303
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>
1 year ago
bashonly
54a63e80af
[test:download] Raise on network errors ( #10283 )
...
Authored by: bashonly, seproDev
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
1 year ago
Peisen Wang
a8520244b8
[cookies] Fix `--cookies-from-browser` DE detection on Linux ( #10237 )
...
Align with chromium source by parsing every part of `XDG_CURRENT_DESKTOP`
Authored by: peisenwang
1 year ago
sepro
add96eb9f8
[cleanup] Add more ruff rules ( #10149 )
...
Authored by: seproDev
Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
1 year ago
Simon Sawicki
5c019f6328
[misc] Cleanup ( #9765 )
...
Closes #9763
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>
1 year ago
coletdjnz
96a134dea6
[ie/youtube] Extract upload timestamp if available ( #9856 )
...
Closes #4962 , Closes #9829
Authored by: coletdjnz
1 year ago
Simon Sawicki
e897bd8292
[misc] Add `hatch`, `ruff`, `pre-commit` and improve dev docs ( #7409 )
...
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>
1 year ago
coletdjnz
53b4d44f55
[test] Fix connect timeout test ( #9906 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659
Authored by: coletdjnz
1 year ago
coletdjnz
3c7a287e28
[test] Add HTTP proxy tests ( #9578 )
...
Also fixes HTTPS proxies for curl_cffi
Authored by: coletdjnz
1 year ago
bashonly
bec9a59e8e
[networking] Add `extensions` attribute to `Response` ( #9756 )
...
CurlCFFIRH now provides an `impersonate` field in its responses' extensions
Authored by: bashonly
1 year ago
Simon Sawicki
7e26bd53f9
[core/windows] Fix tests for `sys.executable` with spaces (Fix for 64766459e3
)
...
Authored by: Grub4K
1 year ago
Simon Sawicki
64766459e3
[core/windows] Improve shell quoting and tests ( #9802 )
...
Authored by: Grub4K
1 year ago
Simon Sawicki
3ee1194288
[ie] Make `_search_nextjs_data` non fatal ( #8937 )
...
Authored by: Grub4K
1 year ago
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
1 year ago
bashonly
216f6a3cb5
[cleanup] Misc ( #9426 )
...
Authored by: bashonly, pukkandan
1 year ago
Simon Sawicki
32abfb00bd
[utils] `traverse_obj`: Convenience improvements ( #9577 )
...
Add support for:
- `http.cookies.Morsel`
- Multi type filters (`{type, type}`)
Authored by: Grub4K
1 year ago
pukkandan
c305a25c1b
[cleanup] Standardize `import datetime as dt` ( #8978 )
1 year ago
pukkandan
86a972033e
Infer `acodec` for single-codec containers
1 year ago
Simon Sawicki
3699eeb67c
[utils] `traverse_obj`: Allow unbranching using `all` and `any` ( #9571 )
...
Authored by: Grub4K
1 year ago
Simon Sawicki
979ce2e786
[test] `traversal`: Separate traversal tests ( #9574 )
...
Authored by: Grub4K
1 year ago
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>
1 year ago
coletdjnz
0b81d4d252
Add new options `--impersonate` and `--list-impersonate-targets`
...
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>
1 year ago
coletdjnz
f849d77ab5
[test] Workaround websocket server hanging ( #9467 )
...
Authored by: coletdjnz
1 year ago
pukkandan
615a84447e
[cleanup] Misc ( #8968 )
...
Authored by: pukkandan, bashonly, seproDev
1 year ago
pukkandan
47ab66db0f
[docs] Misc Cleanup ( #8977 )
...
Closes #8355 , #8944
Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com>
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
1 year ago
sepro
ac340d0745
[test:websockets] Fix timeout test on Windows ( #9344 )
...
Authored by: seproDev
1 year ago
Lev
104a7b5a46
[ie] Migrate commonly plural fields to lists ( #8917 )
...
Authored by: llistochek, pukkandan
Related: #3944
1 year ago
coletdjnz
0085e2bab8
[rh] Remove additional logging handlers on close ( #9032 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/8922
Authored by: coletdjnz
1 year ago
coletdjnz
35f4f764a7
[rh:requests] Apply `remove_dot_segments` to absolute redirect locations
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/9020
Authored by: coletdjnz
2 years ago
coletdjnz
811d298b23
[networking] Remove `_CompatHTTPError` ( #8871 )
...
Use `yt_dlp.networking.exceptions.HTTPError`.
`_CompatHTTPError` was to help with transition to the networking framework.
Authored by: coletdjnz
2 years ago
coletdjnz
69d3191495
[test] Skip source address tests if the address cannot be bound to ( #8900 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/8890
Authored by: coletdjnz
2 years ago
Simon Sawicki
ffbd4f2a02
[utils] `traverse_obj`: Support `xml.etree.ElementTree.Element` ( #8911 )
...
Authored by: Grub4K
2 years ago
Simon Sawicki
f9fb3ce86e
[cleanup] Misc ( #8598 )
...
Authored by: bashonly, pukkandan, seproDev, Grub4K
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2 years ago
Simon Sawicki
00cdda4f6f
[core] Fix format selection parse error for CPython 3.12 ( #8797 )
...
Authored by: Grub4K
2 years ago
bashonly
632b8ee54e
[core] Release workflow and Updater cleanup ( #8640 )
...
- Only use trusted publishing with PyPI and remove support for PyPI tokens from release workflow
- Clean up improper actions syntax in the build workflow inputs
- Refactor Updater to allow for consistent unit testing with `UPDATE_SOURCES`
Authored by: bashonly
2 years ago
bashonly
37755a037e
[test:networking] Update tests for OpenSSL 3.2 ( #8814 )
...
Authored by: bashonly
2 years ago
coletdjnz
196eb0fe77
[networking] Strip whitespace around header values ( #8802 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/8729
Authored by: coletdjnz
2 years ago
Simon Sawicki
0b6f829b1d
[utils] `traverse_obj`: Move `is_user_input` into output template ( #8673 )
...
Authored by: Grub4K
2 years ago
pukkandan
993edd3f6e
[outtmpl] Support multiplication
...
Related: #8683
2 years ago
sepro
1732eccc0a
[core] Parse `release_year` from `release_date` ( #8524 )
...
Closes #7263
Authored by: seproDev
2 years ago
coletdjnz
ccfd70f4c2
[rh:websockets] Migrate websockets to networking framework ( #7720 )
...
* Adds a basic WebSocket framework
* Introduces new minimum `websockets` version of 12.0
* Deprecates `WebSocketsWrapper`
Fixes https://github.com/yt-dlp/yt-dlp/issues/8439
Authored by: coletdjnz
2 years ago
sepro
45d82be65f
[ie/nebula] Overhaul extractors ( #8566 )
...
Closes #4300 , Closes #5814 , Closes #7588 , Closes #6334 , Closes #6538
Authored by: elyse0, pukkandan, seproDev
Co-authored-by: Elyse <26639800+elyse0@users.noreply.github.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2 years ago
bashonly
f4b95acafc
Remove Python 3.7 support ( #8361 )
...
Closes #7803
Authored by: bashonly
2 years ago
bashonly
f04b5bedad
[ie] Do not smuggle `http_headers`
...
See: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x
Authored by: coletdjnz
2 years ago
bashonly
87264d4fda
[test:update] Implement simple updater unit tests
...
Authored by: bashonly
2 years ago
Simon Sawicki
4e38e2ae9d
[rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` (Fix 8a8b54523a
) ( #8348 )
...
Authored by: bashonly, coletdjnz, Grub4K
2 years ago
coletdjnz
8a8b54523a
[rh:requests] Add handler for `requests` HTTP library ( #3668 )
...
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
2 years ago
Awal Garg
9d7ded6419
[utils] `js_to_json`: Fix `Date` constructor parsing ( #8295 )
...
Authored by: awalgarg, Grub4K
2 years ago
Simon Sawicki
088add9567
[cleanup] Misc
...
Authored by: Grub4K
2 years ago
Simon Sawicki
de015e9307
[core] Prevent RCE when using `--exec` with `%q` (CVE-2023-40581)
...
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
2 years ago
Simon Sawicki
61bdf15fc7
[core] Raise minimum recommended Python version to 3.8 ( #8183 )
...
Authored by: Grub4K
2 years ago
bashonly
5ca095cbcd
[cleanup] Misc ( #8182 )
...
Closes #7796 , Closes #8028
Authored by: barsnick, sqrtNOT, gamer191, coletdjnz, Grub4K, bashonly
2 years ago
bashonly
661c9a1d02
[test:download] Test for `expected_exception`
...
Authored by: at-wat
Co-authored-by: Atsushi Watanabe <atsushi.w@ieee.org>
2 years ago
bashonly
52414d64ca
[utils] `js_to_json`: Handle `Array` objects
...
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>
2 years ago
coletdjnz
20fbbd9249
[networking] Fix various socks proxy bugs ( #8065 )
...
- 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>
2 years ago
coletdjnz
fcd6a76adc
[tests] Add tests for socks proxies ( #7908 )
...
Authored by: coletdjnz
2 years ago
coletdjnz
db7b054a61
[networking] Add request handler preference framework ( #7603 )
...
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>
2 years ago
pukkandan
6148833f5c
[cleanup] Misc
2 years ago
pukkandan
3f7965105d
[utils] HTTPHeaderDict: Handle byte values
2 years ago
pukkandan
de20687ee6
[test] Fix `test_load_certifi`
...
Closes #7688 , #7675
2 years ago
coletdjnz
4bf912282a
[networking] Remove dot segments during URL normalization ( #7662 )
...
This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process.
Closes #3355 , #6526
Authored by: coletdjnz
2 years ago
coletdjnz
bbeacff7fc
[networking] Ignore invalid proxies in env ( #7704 )
...
Authored by: coletdjnz
2 years ago
coletdjnz
95abea9a03
[test] Fix `httplib_validation_errors` test for old Python versions ( #7677 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/7674
Authored by: coletdjnz
2 years ago
coletdjnz
86aea0d3a2
[networking] Add strict Request extension checking ( #7604 )
...
Authored by: coletdjnz
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2 years ago
pukkandan
a250b24733
[compat] Ensure submodules are imported correctly
...
Closes #7663
2 years ago
pukkandan
62b5c94cad
[cleanup] Misc fixes
...
Closes #7528
2 years ago
pukkandan
a264433c9f
[outtmpl] Fix replacement for `playlist_index`
2 years ago
bashonly
e57eb98222
[fd/external] Fix ffmpeg input from stdin ( #7655 )
...
Bugfix for 1ceb657bdd
Authored by: bashonly
2 years ago
bashonly
af86873218
[utils] Improve `parse_duration`
...
Authored by: bashonly
2 years ago
bashonly
75dc8e673b
[networking] Fix `--legacy-server-connect` ( #7645 )
...
Bugfix for 227bf1a33b
Authored by: bashonly
2 years ago
bashonly
71baa490eb
[networking] Fix POST requests with zero-length payloads ( #7648 )
...
Bugfix for 227bf1a33b
Authored by: bashonly
2 years ago
bashonly
42ded0a429
[fd/external] Fixes to cookie handling
...
- 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
2 years ago
bashonly
6c5211cebe
[core] Fix HTTP headers and cookie handling
...
- 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
2 years ago