From 5b82d380a76fd3667ef46d94f8942e4ce7576130 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Sat, 29 Nov 2025 18:14:29 +0100 Subject: [PATCH] Add hrti --- lib/streaming_providers/providers/hrti/auth.py | 5 +++++ lib/streaming_providers/providers/hrti/constants.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/streaming_providers/providers/hrti/auth.py b/lib/streaming_providers/providers/hrti/auth.py index 925a4d9..c75d5ba 100644 --- a/lib/streaming_providers/providers/hrti/auth.py +++ b/lib/streaming_providers/providers/hrti/auth.py @@ -370,6 +370,11 @@ class HRTiAuthenticator(BaseAuthenticator): headers=headers, data=json.dumps(payload) ) + + logger.debug(f"Device registration response status: {response.status_code}") + logger.debug(f"Device registration response headers: {dict(response.headers)}") + logger.debug(f"Device registration response content: {response.text}") + response.raise_for_status() # Log successful response diff --git a/lib/streaming_providers/providers/hrti/constants.py b/lib/streaming_providers/providers/hrti/constants.py index e02d625..e6cef00 100644 --- a/lib/streaming_providers/providers/hrti/constants.py +++ b/lib/streaming_providers/providers/hrti/constants.py @@ -47,7 +47,7 @@ class HRTiDefaults: CLIENT_TYPE = 'Chrome 142' # User Agent - USER_AGENT = 'kodi plugin for hrti.hrt.hr (python)' + USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36' # HTTP settings DEFAULT_TIMEOUT = 30