Update .forgejo/workflows/generate-m3u.yml
This commit is contained in:
parent
64dfa58b0a
commit
ba042ad2a4
1 changed files with 6 additions and 7 deletions
|
@ -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 "<EFBFBD>🇵 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/"
|
||||
<EFBFBD>
|
Loading…
Add table
Add a link
Reference in a new issue