From 3762af88fda3432f5da83d19d61d54dd7fc22762 Mon Sep 17 00:00:00 2001 From: stoney420 Date: Fri, 27 Jun 2025 19:27:11 +0200 Subject: [PATCH] Update scripts/generate_playlist.py --- scripts/generate_playlist.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/generate_playlist.py b/scripts/generate_playlist.py index de5d05c..99e580f 100644 --- a/scripts/generate_playlist.py +++ b/scripts/generate_playlist.py @@ -141,18 +141,8 @@ def detect_country_from_channel(channel_name, epg_id="", logo_url=""): log_message(f"Detected {country} for: {channel_name} (matched: '{keyword}')", "INFO") return country - # Special categories - if any(sport in name_lower for sport in ["sport", "football", "soccer", "tennis", "basketball"]): - return "🏈 Sports International" - elif "news" in name_lower: - return "📰 News International" - elif any(kids in name_lower for kids in ["kids", "cartoon", "disney", "nick"]): - return "👶 Kids International" - elif any(movie in name_lower for movie in ["movie", "cinema", "film", "hollywood"]): - return "🎬 Movies International" - elif any(music in name_lower for music in ["music", "mtv", "vh1", "radio"]): - return "🎵 Music International" - + # No special categories - everything unmatched goes to Uncategorized + log_message(f"No country detected for: {channel_name}", "DEBUG") return "Uncategorized" def detect_quality(channel_name):