Project

General

Profile

Where are services stored?

Added by Chris G about 2 years ago

I am trying to figure out where the services are stored.

Am I correct in saying that they are here inside the mux files "\input\dvb\networks\<uuid>\muxes\" ?

If that is correct then what format are they in?


Replies (5)

RE: Where are services stored? - Added by Dave Pickles about 2 years ago

Yes the services are stored in the \input\dvb\networks\<uuid>\muxes\<uuid> files, however these files are compressed and I've not found a way of reading them.

A better bet is to use the Tvheadend HTTP API - see https://github.com/dave-p/TVH-API-docs/wiki. Functions mpegts/service/grid and service/list provide information on services.

RE: Where are services stored? - Added by Chris G about 2 years ago

Thanks for the reply.
I was hoping I could cheat and make services without having to do any scans.
I have already seen your api docs. I think that's what I will have to use and scan normally.

At some point did they used to be plain text? Because there are old scripts that suggest they were.

Thanks,
Chris

RE: Where are services stored? - Added by Dave Pickles about 2 years ago

Never tried it but I suspect if you built Tvheadend without zlib it would not use compression for the muxes (or the EPG). You'd have to set up again from scratch as it wouldn't be able to read the old files...

RE: Where are services stored? - Added by Chris G about 2 years ago

Today I built with zlib disabled and they are now plain text, thanks!
I wonder why I can not extract the files using the zlib library in python or online tools?

RE: Where are services stored? - Added by Dave Pickles about 2 years ago

Looking at the code and the commit history it seems that Tvheadend uses a custom file header, with version information included so that old files can be identified.

    (1-5/5)