shvchenko commited on
Commit
1357cab
·
verified ·
1 Parent(s): 5d2f97b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -91,6 +91,10 @@ def process_playlist(m3u_content):
91
  if 'tvg-id="test"' in line:
92
  new_tvg_id = 'Info.Guide.Dummy.us'
93
 
 
 
 
 
94
  if 'tvg-id=' in line:
95
  line = re.sub(r'tvg-id=".*?"', f'tvg-id="{new_tvg_id}"', line)
96
  else:
@@ -129,4 +133,4 @@ demo = gr.Interface(
129
  description="Paste the M3U8 playlist content. Updates 24/7 and Events channels tvg-id using channels_fixed.json with smart Events matching."
130
  )
131
 
132
- demo.launch()
 
91
  if 'tvg-id="test"' in line:
92
  new_tvg_id = 'Info.Guide.Dummy.us'
93
 
94
+ # Remove test group-title from Events lines
95
+ if is_event:
96
+ line = re.sub(r'group-title="[^"]*"', '', line)
97
+
98
  if 'tvg-id=' in line:
99
  line = re.sub(r'tvg-id=".*?"', f'tvg-id="{new_tvg_id}"', line)
100
  else:
 
133
  description="Paste the M3U8 playlist content. Updates 24/7 and Events channels tvg-id using channels_fixed.json with smart Events matching."
134
  )
135
 
136
+ demo.launch()