Project

General

Profile

How to edit configuration from command line

Added by Mat Hove about 7 years ago

Hi!

In my configuration I have a mix of DVB-S und IPTV muxes. Unfortunately the URL of some of these IPTV muxes is not static but needs to be adjusted from time to time. At the moment I'm adjusting the URL of these muxes manually by using the web interface, but this clearly needs to be automated.

Is it possible to modify the configuration of tvheadend from the command line? I'd love to write a script that modifies the mux configuration, restarting tvheadend afterwards. But all I found is a mux configuration in .hts/tvheadend/input/iptv/networks/<ID>/muxes and this file seems to be binary.

Can anybody help me with this file? Is it some kind of SQL database file? If yes, how can I modify it?

Thanks a lot for your help in advance!


Replies (1)

RE: How to edit configuration from command line - Added by Robert Cameron about 7 years ago

Tvheadend regularly scans the m3u playlist of IPTV networks. If a particular entry/mux is changed from the last read, the the original mux and its services are deleted, and the new/changed mux needs to be rescanned for services and mapped to channels. Presently the solution is to save a copy locally and use that for your network definition, and if your m3u frequently changes then you may need to set up some kind of reverse proxy or to handle the m3u, or else define your streams with scripts that handle/abstract the dynamic aspects.

As far as the file format of the muxes, I believe it is just a serial/binary dump of the mux data structure that Tvheadend uses internally. There is no database to query or modify.

    (1-1/1)