Update app.py

This commit is contained in:
alantang 2025-04-11 16:15:44 +08:00 committed by GitHub
parent 70985e4698
commit 70984e5d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
app.py
View File

@ -140,7 +140,8 @@ def main():
channels = parse_m3u(content)
processed = []
for ch in channels:
if cleaned_meta := process_channel(ch["meta"]):
# 修复: 检查 "meta" 键是否存在
if "meta" in ch and (cleaned_meta := process_channel(ch["meta"])):
processed.append({"meta": cleaned_meta, "url": ch["url"]})
all_channels.extend(processed)