Project

General

Profile

IPTV channels lose attached services on every m3u parse or HTS restart

Added by Dmitry Chubkov about 4 years ago

Hello everyone, my first post here :)

I've updated Tvheadend to 4.1-2141~g01c26fc~trusty version from 3.9.x just because of new 'IPTV Automatic Network' which allow to add all IPTV channels from m3u list and HLS support.
After adding all muxes from m3u playlist, finding all services and mapping them to channels all works fine until next parsing of m3u (approximately every hour) or hts restart. After this new parse all my channels lose linked services ("Services" field becomes empty for each channel). And obviously channels stop working due to missed services. So to solve this I need to map all services manually every hour, very annoying :(

Is it a bug or is there something wrong in my setup? Please help


Replies (4)

RE: IPTV channels lose attached services on every m3u parse or HTS restart - Added by Robert Cameron about 4 years ago

Is any of the text/references in the m3u changing? I use the same type of setup with the automatic IPTV network, and my muxes only lose their associated services when the reference to the stream in the m3u changes.

RE: IPTV channels lose attached services on every m3u parse or HTS restart - Added by Dmitry Chubkov about 4 years ago

I found the problem.
In the network's settings there is "Re-fetch period (mins)" with default value 60.
I changed this to 3000, restarted Tvheadend (without restart new value didn't apply, maybe bug?) and so far all my channels works fine..

Regarding your question - yes, if open my m3u list in browser then all channel's urls changes on each browser refresh. And probably this "Re-fetch" action works similar as refresh in browser. On the other hand - If I do "Force Scan" manually then all urls remain the same in appropriate muxes and my channels continue to work.

So next questions came up:
1) Is it possible to disable re-fetch action at all ?
2) If I need to re-fetch channels from playlist from time to time, then is it possible to automatically map them to the existing channels with same names?

RE: IPTV channels lose attached services on every m3u parse or HTS restart - Added by Robert Cameron about 4 years ago

I don't think you can do what you want. If the channel names are the same as the service names in the m3u, then it will make mapping much easier, but I don't think you can do it automatically.

Also, it doesn't change the root problem, and that is your m3u keeps changing. If once you have it the URLs still work, can't you download the m3u to your harddisk, and then have the IPTV network point to the static copy of the m3u?

RE: IPTV channels lose attached services on every m3u parse or HTS restart - Added by Dmitry Chubkov about 4 years ago

I did as you advised and... it works! Fetching channels from the local m3u file works good. Thank you for help :)

    (1-4/4)