Update app.py
Browse files
app.py
CHANGED
|
@@ -66,10 +66,10 @@ def process_m3u(m3u_text):
|
|
| 66 |
|
| 67 |
# Extract group
|
| 68 |
group_match = re.search(r'group-title="([^"]*)"', extinf)
|
| 69 |
-
group_title = group_match.group(1).upper() if group_match else ""
|
| 70 |
|
| 71 |
# --- 24/7 CHANNELS ---
|
| 72 |
-
if "24/7" in group_title:
|
| 73 |
if tvg_id == "test" or not tvg_id:
|
| 74 |
new_ext = insert_tvg_id(extinf, "Info.Guide.Dummy.us")
|
| 75 |
log.append(f"ℹ️ 24/7 | {channel_name} → Info.Guide.Dummy.us")
|
|
@@ -78,7 +78,7 @@ def process_m3u(m3u_text):
|
|
| 78 |
out_247_blocks.append((new_ext, url))
|
| 79 |
|
| 80 |
# --- EVENTS ---
|
| 81 |
-
elif "EVENTS" in group_title:
|
| 82 |
candidate = channel_name
|
| 83 |
|
| 84 |
# Check hardcoded abbreviation exceptions
|
|
|
|
| 66 |
|
| 67 |
# Extract group
|
| 68 |
group_match = re.search(r'group-title="([^"]*)"', extinf)
|
| 69 |
+
group_title = group_match.group(1).upper().strip() if group_match else ""
|
| 70 |
|
| 71 |
# --- 24/7 CHANNELS ---
|
| 72 |
+
if group_title and "24/7" in group_title:
|
| 73 |
if tvg_id == "test" or not tvg_id:
|
| 74 |
new_ext = insert_tvg_id(extinf, "Info.Guide.Dummy.us")
|
| 75 |
log.append(f"ℹ️ 24/7 | {channel_name} → Info.Guide.Dummy.us")
|
|
|
|
| 78 |
out_247_blocks.append((new_ext, url))
|
| 79 |
|
| 80 |
# --- EVENTS ---
|
| 81 |
+
elif group_title and "EVENTS" in group_title:
|
| 82 |
candidate = channel_name
|
| 83 |
|
| 84 |
# Check hardcoded abbreviation exceptions
|