Autoupdate iptv sources
Sources are from:
- https://epg.pw/test_channel_page.html
- iptv.org
- YueChan/Live
- YanG-1989/m3u
- fanmingming/live
EPG Sources are from:
See https://m3u.ibert.me to get more.
Use CDN (Not recommended): You can use
https://fastly.jsdelivr.net/gh/HerbertHe/iptv-sources@gh-pages/
to replacehttps://m3u.ibert.me/
for using CDN Service. Due to the Cache Policy of CDN, the content wouldn't be the latest, the m3u files would be updated every 2 hours.
使用 CDN (不建议):你可以通过
https://fastly.jsdelivr.net/gh/HerbertHe/iptv-sources@gh-pages/
替换https://m3u.ibert.me/
来使用 CDN 服务。由于 CDN 的 缓存策略,内容不会是最新的,m3u 文件每 2 小时 会更新一次。
You can also deploy the project by yourself with docker.
docker run --name iptv-sources -p 3000:8080 -d herberthe0229/iptv-sources:latest
- Run
docker ps
to get container status.
Wait a minute, visit http://localhost:3000.
Then, you can use http://localhost:3000
instead of https://m3u.ibert.me
.
For example: https://m3u.ibert.me/cn.m3u
-> http://localhost:3000/cn.m3u
Or, you can also deploy with your own server & domain.
Maybe you want to set schedule for auto-updating per 2 hours.
-
Download
iptv-update.sh
https://github.com/HerbertHe/iptv-sources/blob/main/iptv-update.sh to your homedir. -
Edit you crontab:
crontab -e
-
Press keyboard
i
for adding schedule. -
Add:
0 */2 * * * /bin/sh ~/iptv-update.sh
- Press keyboard
ESC
to exit edit mode - Type
:wq
to save - Restart crontab service
service crond restart
-
Download bash script file
update-image.sh
https://github.com/HerbertHe/iptv-sources/blob/main/update-image.sh to your homedir. -
run
/bin/sh ~/update-image.sh
MIT © Herbert He 2023