28
TUTORIAL: Auto-update custom m3u playlists using a cronjob on a Raspberry Pi
For the data hoarders out there managing multiple playlists via IPTVBoss or m3u4u locally, you can automate your XMLTV and M3U pulls and combine them using a simple bash script.
Create `update_iptv.sh`:
```bash
#!/bin/bash
wget -O /var/www/html/master.m3u "http://provider.com/get.php?user=X&pass=Y"
wget -O /var/www/html/epg.xml "http://epg-provider/guide.xml"
sed -i 's/OldChannelString/NewChannelName/g' /var/www/html/master.m3u
```
`chmod +x update_iptv.sh`
Then add to crontab: `0 3 * * * /path/to/update_iptv.sh` to run every day at 3 AM.
Point Tivimate to `http://your-pi-ip/master.m3u`.
Comment as Guest