This commit is contained in:
Nirvana
2025-11-29 18:14:29 +01:00
parent c28cca29ac
commit 5b82d380a7
2 changed files with 6 additions and 1 deletions
@@ -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
@@ -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