Update .forgejo/workflows/generate-m3u.yml

This commit is contained in:
stoney420 2025-06-29 05:27:13 +02:00
parent fd332e99d6
commit 64dfa58b0a

View file

@ -154,11 +154,11 @@ jobs:
echo "Cleanup done"
fi
else
echo "No reports to clean in $REPORT_DIR"
echo "No reports to clean in "$REPORT_DIR""
fi
cd - > /dev/null # Go back to original directory
else
echo "Daily reports directory $REPORT_DIR not found."
echo "Daily reports directory "$REPORT_DIR" not found."
fi
# 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():
return "🇺🇸 United States"
elif ".uk" in epg_id.lower():
return "<EFBFBD>🇧 United Kingdom"
return "🇬🇧 United Kingdom"
elif ".ph" in epg_id.lower():
return "🇵🇭 Philippines"
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"]):
return "🇵🇭 Philippines"
if "animax" in channel_lower:
return "🇯🇵 Japan"
return "<EFBFBD>🇵 Japan"
# Platform-based detection
if "pluto.tv" in text or "images.pluto.tv" in text:
pluto_overrides = {