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 '