Project

General

Profile

how to edit a MUX via FTP

Added by chopo momo over 2 years ago

Hello

I have added some Muxes assigned to Network IPTV .

I would like to edit URL inside a mux via FTP is that possible ? if yes please can you tell me where i could find files in directory , as i searched on /usr/share or /etc .. but didn't find the mux i've Added .

I dont wanna edit it each time from interface .


Replies (3)

RE: how to edit a MUX via FTP - Added by Hiro Protagonist over 2 years ago

Your question is confusing and doesn't contain enough information.

I can try to answer by making some assumptions, but I may have the premise wrong.

You want to edit the URL of a mux in an IPTV network [I presume one provided by a third party], but then you talk about FTP and some local directories - it is unclear what any of this has to do with the question.

To edit the URL you'll need to make a local copy, e.g.

wget -O Local.m3u8 http://address.of.iptv.network

Replace http://address.of.iptv.network with the address from the URL: field when you select 'edit' from Configuration > DVB Inputs > Networks

This will create a file Local.m3u8 which should contain the mux addresses which you can edit, you can also delete any channels you don't want.

Make sure you give Local.m3u8 permissions which will allow TVH to read it.

You can then add an IPTV network in TVH with the address file:///path/to/file/Local.m3u8

Caveats:

Some IPTV providers generate their muxes dynamically which may mean any copy you make will have a limited lifetime.

There may be some level of indirection in the network file - a mux entry may load another .m3u8, which may load another,
so you may have to follow the indirection to get to the bit you want to edit.

RE: how to edit a MUX via FTP - Added by chopo momo over 2 years ago

Thank you for your kind replay ,

I would describe more , I have a Mux called for example " TV2 test " has an URL as picture below :


my question is how can I edit it without using TVH interface , Can i edit it from my server file directly ? if yes , where can i find the file of this mux on my server FTP files ( I mean which directory /... ?

Hope I make it clear now , Thank you so much

RE: how to edit a MUX via FTP - Added by Hiro Protagonist over 2 years ago

chopo momo wrote:

my question is how can I edit it without using TVH interface , Can i edit it from my server file directly ? if yes , where can i find the file of this mux on my server FTP files ( I mean which directory /... ?

No you cannot do this.

Firstly, to be clear, this has nothing whatsoever to do with FTP.

You muxes are stored in .hts/tvheadend/input/iptv/networks/<xxxx>/muxes/ where <xxxx> is the UUID of the network in question. But muxes are stored in binary form and you cannot edit them.

I think your only option is to make a local copy of the network and edit that as I detailed previously.

    (1-3/3)