From 6176b190f1b06be45c1ae0ea0a9d8dfd73005a00 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Tue, 5 May 2026 07:52:12 +0200 Subject: [PATCH] Fix hrti vod --- lib/streaming_providers/providers/hrti/vod_manager.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/streaming_providers/providers/hrti/vod_manager.py b/lib/streaming_providers/providers/hrti/vod_manager.py index 1f095af..6518c1a 100644 --- a/lib/streaming_providers/providers/hrti/vod_manager.py +++ b/lib/streaming_providers/providers/hrti/vod_manager.py @@ -23,6 +23,9 @@ Field mapping notes (from observed GetCatalogue API responses): SeriesData.SeriesReferenceId (not top-level SeriesReferenceId) NumberOfItems (not TotalCount — used for pagination) no HasMore field — derived from page * page_size < NumberOfItems + +Token access: authenticator exposes the token via _current_token.access_token +(there is no get_access_token() method — use the pattern from auth.py directly). """ import json @@ -137,8 +140,11 @@ class HRTiVodManager: "Content-Type": "application/json", } - # Use the public accessor rather than touching private state directly - token = self._authenticator.get_access_token() + token = ( + self._authenticator._current_token.access_token + if self._authenticator._current_token + else "" + ) if token: headers["authorization"] = f"Client {token}"