mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-21 07:12:38 +02:00
magentaeu: hr uses tls_impersonation
This commit is contained in:
@@ -61,7 +61,10 @@ class HTTPManager:
|
||||
proxies = {"http": proxy_url, "https": proxy_url}
|
||||
|
||||
self._session = cffi_requests.Session(
|
||||
impersonate="chrome124",
|
||||
# No impersonate — use curl's native TLS fingerprint,
|
||||
# which is exactly what the working curl command presents.
|
||||
# Chrome impersonation (chrome124) gets scored differently by
|
||||
# Akamai's HR bot profile and returns 503.
|
||||
proxies=proxies or None,
|
||||
)
|
||||
self._using_cffi = True
|
||||
|
||||
@@ -187,7 +187,7 @@ class MagentaEUProvider(StreamingProvider):
|
||||
"x-call-time": str(int(time.time() * 1000)),
|
||||
"x-tv-flow": "START_UP",
|
||||
"x-tv-step": "EPG_CHANNEL",
|
||||
"x-txn-id": str(uuid.uuid4()),
|
||||
"x-txn-id": uuid.uuid4().hex,
|
||||
"x-request-tracking-id": str(uuid.uuid4()),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user