cabernetwork / cabernet

Cabernet allows control of IPTV streams. Plugins supports DaddyLive, Pluto TV, XUMO, M3U/XMLTV.XML files (SamsungTV, STIRR, DistroTV, Plex TV)
https://cabernetwork.github.io
MIT License
196 stars 27 forks source link

Question regarding EPG #169

Open ovargasp opened 1 day ago

ovargasp commented 1 day ago

As I said this is not an issue but a question, my iptv provider changed the EGP from 7 days to 30 days, that causes that now my clients when connect to cabernet, timeout while downloading the EGP info (I think)... cabernet log has this: "2024-11-06 13:11:48,608-INFO:epg2xml Connection dropped by client [Errno 32] Broken pipe". I suppose it's timing out, because I can't get logs out of the androidtv app. So my question is, is it possible to limit the number EPG of days cabernet sends to a client?? I can see the text files cabernet generates for the provider, one per day, so I'm wondering if that's something you can configure but I haven't found yet...

thanks

rocky4546 commented 1 day ago

First, no you cannot filter out EPG data using Cabernet. What you import is what you get. There are two methods you can use to stop the error. First, I use a cronjob to grab the xmltv.xml file from Cabernet and then import that file into the media server. The timeout that occurs is caused by the time it takes Cabernet to serve up the data, so grabbing the file from your system is 10 times faster. Next, you can run a script that strips some of the data from the xml file, if the file is still too big to ingest. I don't have this problem, but you can do that.

ovargasp commented 15 hours ago

I see, thanks for the pointers, can you tell me where is the xmltv.xml stored in the cabernet file system??, I forgot to metion that I'm using the docker version... Another question... If I delete some of the text files from the conf/db/epg location let's say it has files from 2024/11/06 through 2024/12/06. If I delete files from 4 days forward every time that I syncronize the EPG (to keep only 4 days EGP), delete 2024/11/10 - 2024/12/06 for example. Will it reduce the xmltv file, or will it break the cabernet db?? I can create a cronjob to do that as well an reduce the size of the file artificially.