From ba042ad2a40684cb323a020cc615160d76e7e2a2 Mon Sep 17 00:00:00 2001 From: stoney420 Date: Sun, 29 Jun 2025 05:28:41 +0200 Subject: [PATCH] Update .forgejo/workflows/generate-m3u.yml --- .forgejo/workflows/generate-m3u.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/generate-m3u.yml b/.forgejo/workflows/generate-m3u.yml index 892acaf..b24c7dc 100644 --- a/.forgejo/workflows/generate-m3u.yml +++ b/.forgejo/workflows/generate-m3u.yml @@ -124,7 +124,7 @@ jobs: echo "---" >> "$REPORT" echo "*Report generated automatically by Forgejo Actions*" >> "$REPORT" - echo "✅ Report created: $REPORT" + echo "✅ Report created: "$REPORT"" - name: Health Check (Optional) continue-on-error: true @@ -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 @@ -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 "🇯🇵 Japan" # Platform-based detection if "pluto.tv" in text or "images.pluto.tv" in text: pluto_overrides = { @@ -393,7 +393,7 @@ EOF echo "" >> "$REPORT" echo "---" >> "$REPORT" echo "*Enhanced country detection with 99%+ accuracy*" >> "$REPORT" - echo "📊 Report created: $REPORT" + echo "📊 Report created: "$REPORT"" - name: Commit Enhanced Results run: | @@ -418,10 +418,9 @@ EOF if [ -f playlist.m3u ]; then CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0") COUNTRIES=$(grep -o 'group-title="[^"]*"' playlist.m3u | sed 's/group-title="//;s/"//' | sort -u | wc -l || echo "0") - echo "✅ Generated $CHANNELS channels across $COUNTRIES countries" + echo "✅ Generated "$CHANNELS" channels across "$COUNTRIES" countries" echo "🎯 Enhanced detection fixes major classification issues" echo "🌍 Canadian, US, UK, Philippines channels now correctly classified" fi echo "📋 Backup files created for safety" echo "📊 Detailed reports available in reports/daily/" -� \ No newline at end of file