Update scripts/generate_playlist.py
All checks were successful
📺 Generate M3U Playlist / build (push) Successful in 1m44s
All checks were successful
📺 Generate M3U Playlist / build (push) Successful in 1m44s
This commit is contained in:
parent
cc26bb7575
commit
3762af88fd
1 changed files with 2 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue