bashonly
5bb1aa04da
[networking] Pin `curl-cffi` version to < 0.7.2 ( #11092 )
...
Ref: https://github.com/lexiforest/curl_cffi/issues/394
Authored by: bashonly
2 months ago
coletdjnz
d1c4d88b2d
[networking] Fix handler not being added to RequestError ( #10955 )
...
Authored by: coletdjnz
3 months ago
coletdjnz
6f9e653743
[rh:websockets] Upgrade websockets to 13.0 ( #10815 )
...
Fixes CI hanging
Authored by: coletdjnz
3 months 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
4 months ago
coletdjnz
42bfca00a6
[rh:curl_cffi] Support `curl_cffi` 0.7.X
...
Authored by: coletdjnz
5 months 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>
5 months ago
sepro
7814c50948
[cleanup] Bump ruff to 0.5.x ( #10282 )
...
Authored by: seproDev
5 months 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>
5 months ago
bashonly
db50f19d76
[rh:requests] Bump minimum `requests` version to 2.32.2 ( #10079 )
...
Closes #10078
Authored by: bashonly
6 months ago
Simon Sawicki
3f7999533e
[rh:requests] Patch support for `requests` 2.32.2+ ( #9992 )
...
Authored by: Grub4K
6 months ago
coletdjnz
c36513f1be
[rh:requests] Update to `requests` 2.32.0 ( #9980 )
...
Authored by: coletdjnz
6 months ago
coletdjnz
53b4d44f55
[test] Fix connect timeout test ( #9906 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659
Authored by: coletdjnz
6 months ago
coletdjnz
3c7a287e28
[test] Add HTTP proxy tests ( #9578 )
...
Also fixes HTTPS proxies for curl_cffi
Authored by: coletdjnz
7 months ago
bashonly
bec9a59e8e
[networking] Add `extensions` attribute to `Response` ( #9756 )
...
CurlCFFIRH now provides an `impersonate` field in its responses' extensions
Authored by: bashonly
7 months ago
bashonly
216f6a3cb5
[cleanup] Misc ( #9426 )
...
Authored by: bashonly, pukkandan
8 months ago
luiso1979
79a451e576
[networking] Respect `SSLKEYLOGFILE` environment variable ( #9543 )
...
Authored by: luiso1979
8 months ago
bashonly
50c2935231
[ie] Add extractor impersonate API ( #9474 )
...
Authored by: bashonly, Grub4K, pukkandan
8 months ago
coletdjnz
e5d4f11104
[rh:websockets] Workaround race condition causing issues on PyPy ( #9514 )
...
Authored by: coletdjnz
8 months 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>
8 months 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>
8 months ago
pukkandan
93240fc184
[cleanup] Fix misc bugs ( #8968 )
...
Closes #8816
Authored by: bashonly, seproDev, pukkandan, Grub4k
9 months 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>
9 months ago
Simon Sawicki
dbd8b1bff9
Improve 069b2aedae
...
Authored by: Grub4k
9 months ago
pukkandan
069b2aedae
Create `ydl._request_director` when needed
9 months ago
coletdjnz
0085e2bab8
[rh] Remove additional logging handlers on close ( #9032 )
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/8922
Authored by: coletdjnz
9 months 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
10 months 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
10 months 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>
11 months 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
1 year ago
Simon Sawicki
b012271d01
[cleanup] Misc ( #8510 )
...
Authored by: bashonly, coletdjnz, dirkf, gamer191, seproDev, Grub4K
1 year ago
Simon Sawicki
4e38e2ae9d
[rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` (Fix 8a8b54523a
) ( #8348 )
...
Authored by: bashonly, coletdjnz, Grub4K
1 year 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
1 year ago
bashonly
5ca095cbcd
[cleanup] Misc ( #8182 )
...
Closes #7796 , Closes #8028
Authored by: barsnick, sqrtNOT, gamer191, coletdjnz, Grub4K, bashonly
1 year 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>
1 year ago
Simon Sawicki
836e06d246
[core] Fix support for upcoming Python 3.12 ( #8130 )
...
This also adds the following test runners:
- `3.12-dev` on `ubuntu-latest`
- `3.12-dev` on `windows-latest`
- `pypy-3.10` on `ubuntu-latest`
Authored by: Grub4K
1 year ago
Simon Sawicki
77bff23ee9
Bugfix for 59e92b1f18
...
Closes #8012
Authored by: Grub4K
1 year ago
Simon Sawicki
59e92b1f18
[rh/urllib] Simplify gzip decoding ( #7611 )
...
Authored by: Grub4K
1 year 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>
1 year ago
pukkandan
6148833f5c
[cleanup] Misc
1 year 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
1 year ago
coletdjnz
bbeacff7fc
[networking] Ignore invalid proxies in env ( #7704 )
...
Authored by: coletdjnz
1 year ago
coletdjnz
86aea0d3a2
[networking] Add strict Request extension checking ( #7604 )
...
Authored by: coletdjnz
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
1 year ago
pukkandan
62b5c94cad
[cleanup] Misc fixes
...
Closes #7528
1 year ago
bashonly
71baa490eb
[networking] Fix POST requests with zero-length payloads ( #7648 )
...
Bugfix for 227bf1a33b
Authored by: bashonly
1 year ago
coletdjnz
3d2623a898
[compat, networking] Deprecate old functions ( #2861 )
...
Authored by: coletdjnz, pukkandan
1 year ago
coletdjnz
227bf1a33b
[networking] Rewrite architecture ( #2861 )
...
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
1 year ago
pukkandan
c365dba843
[networking] Add module ( #2861 )
...
No actual changes - code is only moved around
1 year ago