From 31128871310a02c018bb9fedcc185b9b9e4b2d2b Mon Sep 17 00:00:00 2001 From: Nirvana Date: Tue, 10 Feb 2026 12:50:04 +0100 Subject: [PATCH] Add m3u playlists --- lib/streaming_providers/providers/m3u/provider.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/streaming_providers/providers/m3u/provider.py b/lib/streaming_providers/providers/m3u/provider.py index ba8eedc..012672b 100644 --- a/lib/streaming_providers/providers/m3u/provider.py +++ b/lib/streaming_providers/providers/m3u/provider.py @@ -663,8 +663,15 @@ class M3UProvider(StreamingProvider): for i, line in enumerate(lines): line = line.strip() - # Skip empty lines and comments (except directives) - if not line or (line.startswith("#") and not line.startswith("#EXT")): + # Replace the skip block with: + if not line: + continue + # Skip ONLY pure comment lines (not directives) + if line.startswith("#") and not ( + line.startswith("#EXT") or + line.startswith("#KODIPROP:") or # ← CRITICAL: colon required + line.startswith("#EXTVLCOPT:") # ← CRITICAL: colon required + ): continue # Parse EXTINF line