From 3836f2ae534e1c651f08344bfe9674f70f65dcc6 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Fri, 21 Nov 2025 10:12:15 +0100 Subject: [PATCH] Fix get_manifest --- .../providers/magenta2/provider.py | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/lib/streaming_providers/providers/magenta2/provider.py b/lib/streaming_providers/providers/magenta2/provider.py index db4864e..8aba468 100644 --- a/lib/streaming_providers/providers/magenta2/provider.py +++ b/lib/streaming_providers/providers/magenta2/provider.py @@ -1163,6 +1163,16 @@ class Magenta2Provider(StreamingProvider): try: smil_content = self._get_smil_content(channel_id) if not smil_content: + logger.error(f"No SMIL content received for channel {channel_id}") + return None + + # 🚨 ADD VALIDATION: Check if we got actual SMIL content + if len(smil_content.strip()) == 0: + logger.error(f"Empty SMIL content for channel {channel_id}") + return None + + if '