Merge pull request 'updated tls profiles' (#23) from development into main

Reviewed-on: #23
This commit was merged in pull request #23.
This commit is contained in:
TPV committed 2026-09-27 04:11:53 +00:00
commit 1b3f860ff3
1 file changed
+13 -1
+13 -1
View File
@@ -43,7 +43,19 @@ MAX_CURL_HANDLES = 64
# no timeout of its own, so a wedged transfer would otherwise park whatever is # no timeout of its own, so a wedged transfer would otherwise park whatever is
# closing the session, including an `async with` exit. # closing the session, including an `async with` exit.
SESSION_CLOSE_TIMEOUT_SECONDS = 10 SESSION_CLOSE_TIMEOUT_SECONDS = 10
CLIENT_IDENTIFIERS = ["chrome", "chrome_android", "safari", "safari_ios"] # Explicit curl_cffi profiles rather than the "chrome" / "chrome_android"
# aliases, which float to the newest build (chrome146 / chrome131_android in
# curl_cffi 0.15). Chrome 116, 123 and everything from 133a up were refused by
# B&H's Cloudflare on every try (2026-09-26); the ones listed passed.
CLIENT_IDENTIFIERS = [
"chrome119",
"chrome120",
"chrome124",
"chrome131",
"chrome131_android",
"safari",
"safari_ios",
]
CLIENT_TIMEOUT = aiohttp.ClientTimeout( CLIENT_TIMEOUT = aiohttp.ClientTimeout(
total=TIMEOUT_SECONDS, sock_connect=30, sock_read=30 total=TIMEOUT_SECONDS, sock_connect=30, sock_read=30
) )