From 1249bdbfd1ed94f423eaabe37591a5da9cce2ecb Mon Sep 17 00:00:00 2001 From: Nirvana Date: Sun, 3 May 2026 22:30:02 +0200 Subject: [PATCH] Prepare RTLPlus for new streaming prov --- .../providers/movetv/provider.py | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/streaming_providers/providers/movetv/provider.py b/lib/streaming_providers/providers/movetv/provider.py index eb101f9..d783f04 100644 --- a/lib/streaming_providers/providers/movetv/provider.py +++ b/lib/streaming_providers/providers/movetv/provider.py @@ -362,9 +362,16 @@ class MoveTVProvider(StreamingProvider): # content_id IS the contentId — resolve to liveId via channel cache channel = self._channel_by_id(content_id) if channel is None: - logger.error( + logger.info( f"move.tv: Channel not found in cache for content_id={content_id!r}; " - "cannot resolve liveId for manifest fetch" + "attempting to rebuild channel cache before manifest fetch" + ) + self.get_channels() + channel = self._channel_by_id(content_id) + if channel is None: + logger.error( + f"move.tv: Channel still not found after cache rebuild for " + f"content_id={content_id!r}; cannot resolve liveId for manifest fetch" ) return None live_id = channel.live_id @@ -415,9 +422,16 @@ class MoveTVProvider(StreamingProvider): try: channel = self._channel_by_id(content_id) if channel is None: - logger.error( + logger.info( f"move.tv: Channel not found for content_id={content_id!r}; " - "cannot resolve liveId for play-auth fetch" + "attempting to rebuild channel cache before play-auth fetch" + ) + self.get_channels() + channel = self._channel_by_id(content_id) + if channel is None: + logger.error( + f"move.tv: Channel still not found after cache rebuild for " + f"content_id={content_id!r}; cannot resolve liveId for play-auth fetch" ) return None live_id = channel.live_id