Update scripts/generate_playlist.py
All checks were successful
📺 Generate M3U Playlist / build (push) Successful in 1m44s

This commit is contained in:
stoney420 2025-06-27 19:27:11 +02:00
parent cc26bb7575
commit 3762af88fd

View file

@ -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") log_message(f"Detected {country} for: {channel_name} (matched: '{keyword}')", "INFO")
return country return country
# Special categories # No special categories - everything unmatched goes to Uncategorized
if any(sport in name_lower for sport in ["sport", "football", "soccer", "tennis", "basketball"]): log_message(f"No country detected for: {channel_name}", "DEBUG")
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"
return "Uncategorized" return "Uncategorized"
def detect_quality(channel_name): def detect_quality(channel_name):