Skip to content

(feat) Add XMLTV EPG generation and endpoint#58

Open
vquie wants to merge 1 commit intoOpenViX:masterfrom
vquie:add_epg_endpoint
Open

(feat) Add XMLTV EPG generation and endpoint#58
vquie wants to merge 1 commit intoOpenViX:masterfrom
vquie:add_epg_endpoint

Conversation

@vquie
Copy link
Copy Markdown
Contributor

@vquie vquie commented Apr 25, 2026

Introduce getEPG class to build XMLTV from EPG cache
Add /epg.xml and /xmltv.xml routes in server to serve EPG Include host and bouquet-specific filtering for channels

use curl http://$yourip:6083/epg.xml or curl http://$yourip:6083/xmltv.xml

@Huevos
Copy link
Copy Markdown
Contributor

Huevos commented Apr 25, 2026

Is this going to be a whole series of commits?

@vquie
Copy link
Copy Markdown
Contributor Author

vquie commented Apr 25, 2026

Is this going to be a whole series of commits?

This and the other topic were the ones bothering me. Since they aren't really related I created a new PR for this.

I might add another feature for distinguishing between direct stream via 8001 and transcoded 8002 port but need to test first.

I am streaming over the internet, hence I needed these to improve my own experience. :-D

@Huevos
Copy link
Copy Markdown
Contributor

Huevos commented Apr 25, 2026

And the commits are tested and working?

@vquie
Copy link
Copy Markdown
Contributor Author

vquie commented Apr 25, 2026

yes, testing them via rsync to my box currently before submitting any code.

Introduce getEPG class to build XMLTV from EPG cache
Add /epg.xml and /xmltv.xml routes in server to serve EPG
Include host and bouquet-specific filtering for channels
@vquie
Copy link
Copy Markdown
Contributor Author

vquie commented Apr 25, 2026

I might add another feature for distinguishing between direct stream via 8001 and transcoded 8002 port but need to test first.

My box does not support transcoding so this is not coming.

@vquie vquie marked this pull request as draft April 25, 2026 16:42
@vquie
Copy link
Copy Markdown
Contributor Author

vquie commented Apr 25, 2026

found a potential issue where the xml is not valid. Working on it.

Update: Nevermind. Issue was on my plex end. xml looks good.

@vquie vquie marked this pull request as ready for review April 25, 2026 16:50
@vquie vquie force-pushed the add_epg_endpoint branch from 23ca737 to 5ede347 Compare April 25, 2026 17:51
@Huevos
Copy link
Copy Markdown
Contributor

Huevos commented Apr 25, 2026

So this is ready to merge now?

@vquie
Copy link
Copy Markdown
Contributor Author

vquie commented Apr 26, 2026

It does work. But there are certain things that might need improvements, e.g. I am missing some channels that are in the bouquet but there is nothing in the epg. Need to figure out if this is an issue with the epg from the box and if this script can even improve it.
So if you are willing to accept improvements over time, I would say "merge it as this is a new feature and not touching anything that already exists". If you want it to be production ready from the start, I would need some more time to test and update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants