iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.78k stars 194 forks source link

EPG automatic refresh? #2148

Closed anoo2niem closed 1 year ago

anoo2niem commented 1 year ago

Description

Hi guys, i came across this project and i want to start using it to implement epg into my jellyfin iptv.

My goal is to run this on a container on my proxmox host, so it then can serve the epg xml into my jellyfin. I see u can adjust the amount of days in config.js, which is wonderful.

My question is, for explamle the default days is 2, do i have to manually (or cronjob) every 2 days to update the list? Or does it do this automatically?

Thanks!

yarafie commented 1 year ago

Did you build a Docker container?

anoo2niem commented 1 year ago

Did you build a Docker container?

No installed on debian container on proxmox host, ended up using cronjob & bash script to automate the refresh. Why?

yarafie commented 1 year ago

Thought you might have a Docker file that I can use instead of me trying to start from scratch

anoo2niem commented 1 year ago

To automate the updating? I can share the simple bash script & cron entries if u want

yarafie commented 1 year ago

Thanks got that covered but if you can share worth seeimg how you set it up.

anoo2niem commented 1 year ago

start_server.sh

#!/bin/bash
cd ~/epg
/usr/bin/npm run serve

update_epg.sh

cd ~/epg
SITE=ziggogo.tv /usr/bin/npm run grab
SITE=telenet.tv /usr/bin/npm run grab
now=$(/usr/bin/date)
/usr/bin/echo 'EPG updated on ' $now >> ~/epg.log

cron: (update each monday & thursday in my case at 03:00, epg config set to download 5 days)

@reboot /usr/bin/bash ~/start_server.sh
0 3 * * 1 /usr/bin/bash ~/update_epg.sh
0 3 * * 4 /usr/bin/bash ~/update_epg.sh
yarafie commented 1 year ago

great so you went into the ziggogo.tv.conf and changed to days: 5 same with telenet.tv.conf

anoo2niem commented 1 year ago

Yes