magentaeu: hr uses tls_impersonation

This commit is contained in:
Nirvana
2026-07-01 12:21:21 +02:00
parent fe87b14e0f
commit 54f6950201
2 changed files with 5 additions and 2 deletions
@@ -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()),
})