Update IPTV #3150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update IPTV | |
on: | |
schedule: | |
- cron: 0 0/4 * * * | |
workflow_dispatch: | |
jobs: | |
Update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: GetTime | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')" | |
- name: IPTV | |
run: | | |
# FreeviewMY | |
rm -f FreeviewMY.m3u8 && wget https://raw.githubusercontent.com/itszairi/FreeviewMY/main/FreeviewMY.m3u8 -O FreeviewMY.m3u8 | |
sed -i '1i #EXTM3U' FreeviewMY.m3u8 | |
sed -i '/^\s*$/d' FreeviewMY.m3u8 | |
# mewatchsg | |
rm -f mewatchsg.m3u8 && wget https://raw.githubusercontent.com/samleong123/mewatchsg/main/mewatchsg_drm_wv_url.m3u8 -O mewatchsg.m3u8 | |
sed -i '1i #EXTM3U' mewatchsg.m3u8 | |
sed -i '/^\s*$/d' mewatchsg.m3u8 | |
# my | |
rm -f my.m3u && wget https://live02.gohkh9.eu.org/m3u/my.m3u -O my.m3u | |
sed -i '1i #EXTM3U' my.m3u | |
sed -i '/^\s*$/d' my.m3u | |
# my | |
rm -f tw.m3u && wget https://raw.githubusercontent.com/iptv-org/iptv/master/streams/tw.m3u -O tw.m3u | |
sed -i '1i #EXTM3U' tw.m3u | |
sed -i 's/#EXTINF:-1/#EXTINF:-1 group-title="TW"/g' tw.m3u | |
sed -i '/^\s*$/d' tw.m3u | |
# my | |
rm -f cqyx.m3u && wget https://raw.githubusercontent.com/Ftindy/IPTV-URL/main/cqyx.m3u -O cqyx.m3u | |
rm -f sxg.m3u && wget https://raw.githubusercontent.com/Ftindy/IPTV-URL/main/sxg.m3u -O sxg.m3u | |
rm -f iptv-org.m3u && touch iptv-org.m3u | |
cat cqyx.m3u >> iptv-org.m3u | |
cat sxg.m3u >> iptv-org.m3u | |
sed -i 's/live.goodiptv.club/live02.gohkh9.eu.org/g' iptv-org.m3u | |
sed -i '/^\s*$/d' iptv-org.m3u | |
# 整合源 | |
rm -f IPTV.m3u && touch IPTV.m3u | |
cat my.m3u >> IPTV.m3u | |
cat FreeviewMY.m3u8 >> IPTV.m3u | |
cat mewatchsg.m3u8 >> IPTV.m3u | |
cat tw.m3u >> IPTV.m3u | |
cat iptv-org.m3u >> IPTV.m3u | |
sed -i '/#EXTM3U/d' IPTV.m3u | |
sed -i '1i #EXTM3U x-tvg-url="https://gohhh1234.github.io/iptv/EPG.xml,https://gohhh1234.github.io/iptv/EPG-1.xml,https://gohhh1234.github.io/iptv/EPG-2.xml,https://gohhh1234.github.io/iptv/EPG-3.xml"' IPTV.m3u | |
- name: EPG | |
run: | | |
# 节目源 | |
rm -f EPG.xml && wget https://cutt.ly/FreeviewMY-EPG-1 -O EPG.xml | |
rm -f EPG-1.xml && wget https://cutt.ly/FreeviewMY-EPG-2 -O EPG-1.xml | |
rm -f EPG-2.xml && wget https://raw.githubusercontent.com/AqFad2811/epg/main/singapore.xml -O EPG-2.xml | |
rm -f EPG-3.xml && wget https://raw.githubusercontent.com/AqFad2811/epg/main/singapore.xml -O EPG-3.xml | |
echo "Auto Update IPTV in ${{ steps.date.outputs.date }}" > README.md | |
- name: Clean | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add -A | |
git commit -a -m "${{ steps.date.outputs.date }}" | |
- name: Push | |
run: git push origin master |