HerbertHe / iptv-sources
- понедельник, 18 декабря 2023 г. в 00:00:13
自动抓取更新iptv源 Autoupdate iptv sources
Autoupdate iptv sources
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 3 hours.
使用 CDN (不建议):你可以通过
https://fastly.jsdelivr.net/gh/HerbertHe/iptv-sources@gh-pages/替换https://m3u.ibert.me/来使用 CDN 服务。由于 CDN 的 缓存策略,内容不会是最新的,m3u 文件每 3 小时 会更新一次。
You can also deploy the project by yourself with docker.
docker run --name iptv-sources -p 3000:8080 -d herberthe0229/iptv-sources:latestdocker 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 bash script file iptv-sources.sh https://github.com/HerbertHe/iptv-sources/blob/main/iptv-sources.sh to your homedir.
Edit you crontab:
crontab -ePress keyboard i for adding schedule.
Add:
0 */2 * * * /bin/sh ~/iptv-sources.sh
ESC to exit edit mode:wq to saveservice crond restartMIT © Herbert He 2023