80 Commits

Author SHA1 Message Date
coletdjnz
c88909ae47
Merge remote-tracking branch 'upstream/master' into networking/websockets-http-proxy
# Conflicts:
#	yt_dlp/networking/_helper.py
#	yt_dlp/networking/_websockets.py
2024-11-24 11:06:29 +13:00
bashonly
c6387abc1a
[cleanup] Misc (#10807)
Closes #10751, Closes #10769, Closes #10791
Authored by: bashonly, Codenade, pzhlkj6612, seproDev, coletdjnz, grqz, Grub4K

Co-authored-by: Codenade <amadeus.dorian04@gmail.com>
Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com>
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-09-27 22:46:22 +00:00
bashonly
5bb1aa04da
[networking] Pin curl-cffi version to < 0.7.2 (#11092)
Ref: https://github.com/lexiforest/curl_cffi/issues/394

Authored by: bashonly
2024-09-25 20:59:20 +00:00
coletdjnz
d1c4d88b2d
[networking] Fix handler not being added to RequestError (#10955)
Authored by: coletdjnz
2024-09-08 19:32:44 +12:00
coletdjnz
6f9e653743
[rh:websockets] Upgrade websockets to 13.0 (#10815)
Fixes CI hanging

Authored by: coletdjnz
2024-08-21 19:17:26 +12:00
coletdjnz
bcf8436c68
bump some timeouts 2024-07-14 13:06:50 +12:00
coletdjnz
86b32ee0da
Merge remote-tracking branch 'upstream/master' into networking/websockets-http-proxy
# Conflicts:
#	yt_dlp/networking/_websockets.py
2024-07-14 11:34:49 +12:00
coletdjnz
cdd8e33141
Merge without githooks 2024-07-14 11:33:01 +12:00
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
2024-07-14 11:22:43 +12:00
coletdjnz
42bfca00a6 [rh:curl_cffi] Support curl_cffi 0.7.X
Authored by: coletdjnz
2024-07-09 18:36:15 -05:00
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>
2024-07-01 22:51:27 +00:00
sepro
7814c50948
[cleanup] Bump ruff to 0.5.x (#10282)
Authored by: seproDev
2024-06-29 17:30:57 +02:00
bashonly
556aa5161e
Merge branch 'master' into networking/websockets-http-proxy 2024-06-12 02:01:26 -05:00
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>
2024-06-12 01:09:58 +02:00
coletdjnz
e1192b1bb3
initialize fake logger 2024-06-03 11:38:06 +12:00
coletdjnz
aef80ad64c
Update yt_dlp/networking/_websockets.py
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2024-06-03 11:20:02 +12:00
bashonly
db50f19d76
[rh:requests] Bump minimum requests version to 2.32.2 (#10079)
Closes #10078
Authored by: bashonly
2024-06-01 18:57:23 +00:00
Simon Sawicki
3f7999533e
[rh:requests] Patch support for requests 2.32.2+ (#9992)
Authored by: Grub4K
2024-05-22 16:22:25 +02:00
coletdjnz
c36513f1be
[rh:requests] Update to requests 2.32.0 (#9980)
Authored by: coletdjnz
2024-05-20 21:44:41 +00:00
coletdjnz
f1f1af9c67
Always send to stdout 2024-05-19 10:49:24 +12:00
coletdjnz
2c7ddb6234
Try this 2024-05-19 10:40:40 +12:00
coletdjnz
72bb0969bf
Missed something 2024-05-19 10:18:47 +12:00
coletdjnz
976cec10c9
Fix debug traffic for websockets proxy 2024-05-19 10:17:28 +12:00
coletdjnz
53b4d44f55
[test] Fix connect timeout test (#9906)
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659

Authored by: coletdjnz
2024-05-18 19:12:21 +12:00
coletdjnz
6dcc99ee4a
Apply for legacy framing too for safe measure 2024-05-18 18:24:27 +12:00
coletdjnz
c2718e7ff5
misc cleanup 2024-05-18 18:07:29 +12:00
coletdjnz
0b255c531b
catch fix 2024-05-18 17:34:00 +12:00
coletdjnz
4cfce3b22f
minor fix 2024-05-18 17:28:25 +12:00
coletdjnz
d274eb1f53
Only use SSLTransport where tls-in-tls will be used 2024-05-18 17:18:21 +12:00
coletdjnz
8c0d5041df
revert 2024-05-18 15:54:38 +12:00
coletdjnz
44da2e1323
reset socket timeout before handing over to websockets 2024-05-18 15:43:43 +12:00
coletdjnz
b4e0d5ac16
Disable apply_mask C implementation 2024-05-18 14:38:44 +12:00
coletdjnz
c01179b581
cleanup 2024-05-18 13:54:01 +12:00
coletdjnz
101d9f53b4
always use WebSocketsSSLTransport if available
this ensures it is used for both sockets in TLS-in-TLS
2024-05-18 13:46:55 +12:00
coletdjnz
018acbb93c
does this resolve unclosed socket? 2024-05-18 12:48:50 +12:00
coletdjnz
3350bdeb87
refactoring and add http erro test 2024-05-18 12:23:22 +12:00
coletdjnz
0efd83b31a
patch SSLTransport to return b'' instead of 0 as EOF
Websockets only treats b'' as EOF
2024-05-18 11:41:36 +12:00
coletdjnz
51e99b0759
Merge remote-tracking branch 'upstream/master' into networking/websockets-http-proxy
# Conflicts:
#	test/test_http_proxy.py
#	test/test_networking.py
2024-05-11 11:09:44 +12:00
coletdjnz
3c7a287e28
[test] Add HTTP proxy tests (#9578)
Also fixes HTTPS proxies for curl_cffi

Authored by: coletdjnz
2024-05-11 10:06:58 +12:00
bashonly
bec9a59e8e
[networking] Add extensions attribute to Response (#9756)
CurlCFFIRH now provides an `impersonate` field in its responses' extensions

Authored by: bashonly
2024-05-04 22:19:42 +00:00
coletdjnz
0d520bc008
misc fixes 2024-05-03 17:09:26 +12:00
coletdjnz
8ea52ec344
Update yt_dlp/networking/_websockets.py 2024-05-03 17:04:33 +12:00
bashonly
216f6a3cb5
[cleanup] Misc (#9426)
Authored by: bashonly, pukkandan
2024-04-09 16:12:26 +00:00
luiso1979
79a451e576
[networking] Respect SSLKEYLOGFILE environment variable (#9543)
Authored by: luiso1979
2024-04-08 21:53:30 +02:00
coletdjnz
833862cfbc
misc cleanup 2024-04-06 15:50:48 +13:00
coletdjnz
01fe8e8fa6
Handle urllib3 not being available 2024-04-06 15:40:29 +13:00
coletdjnz
3999a510f7
Working websockets HTTP/S proxy 2024-04-06 15:14:59 +13:00
coletdjnz
39a45d48f9
somewhat working implementation 2024-03-31 22:04:21 +13:00
coletdjnz
e565e45a6f
[rh:curl_cffi] Fix HTTPS proxy support 2024-03-31 14:50:52 +13:00
bashonly
50c2935231
[ie] Add extractor impersonate API (#9474)
Authored by: bashonly, Grub4K, pukkandan
2024-03-30 23:18:07 +00:00