Update .forgejo/workflows/generate-m3u.yml
This commit is contained in:
parent
fd332e99d6
commit
64dfa58b0a
1 changed files with 4 additions and 4 deletions
|
@ -154,11 +154,11 @@ jobs:
|
||||||
echo "Cleanup done"
|
echo "Cleanup done"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "No reports to clean in $REPORT_DIR"
|
echo "No reports to clean in "$REPORT_DIR""
|
||||||
fi
|
fi
|
||||||
cd - > /dev/null # Go back to original directory
|
cd - > /dev/null # Go back to original directory
|
||||||
else
|
else
|
||||||
echo "Daily reports directory $REPORT_DIR not found."
|
echo "Daily reports directory "$REPORT_DIR" not found."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reset Import File
|
# Reset Import File
|
||||||
|
@ -183,7 +183,7 @@ def detect_country_enhanced(channel_name, epg_id="", logo_url="", stream_url="")
|
||||||
elif ".us" in epg_id.lower():
|
elif ".us" in epg_id.lower():
|
||||||
return "🇺🇸 United States"
|
return "🇺🇸 United States"
|
||||||
elif ".uk" in epg_id.lower():
|
elif ".uk" in epg_id.lower():
|
||||||
return "<EFBFBD>🇧 United Kingdom"
|
return "🇬🇧 United Kingdom"
|
||||||
elif ".ph" in epg_id.lower():
|
elif ".ph" in epg_id.lower():
|
||||||
return "🇵🇭 Philippines"
|
return "🇵🇭 Philippines"
|
||||||
elif ".au" in epg_id.lower():
|
elif ".au" in epg_id.lower():
|
||||||
|
@ -203,7 +203,7 @@ def detect_country_enhanced(channel_name, epg_id="", logo_url="", stream_url="")
|
||||||
if any(x in channel_lower for x in ["anc global", "anc ph"]):
|
if any(x in channel_lower for x in ["anc global", "anc ph"]):
|
||||||
return "🇵🇭 Philippines"
|
return "🇵🇭 Philippines"
|
||||||
if "animax" in channel_lower:
|
if "animax" in channel_lower:
|
||||||
return "🇯🇵 Japan"
|
return "<EFBFBD>🇵 Japan"
|
||||||
# Platform-based detection
|
# Platform-based detection
|
||||||
if "pluto.tv" in text or "images.pluto.tv" in text:
|
if "pluto.tv" in text or "images.pluto.tv" in text:
|
||||||
pluto_overrides = {
|
pluto_overrides = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue