Project

General

Profile

IPTV & tvheadend, m3u, playlist, channel scan

Added by jody gugelhop over 4 years ago

Hi all,

I have tvh 4.1-2415~ge5f5a4278 on arch 4.8.13-1-ARCH running.
I have a subscription with an IPTV provider that delivers the list in m3u format. I can have only one connection from my ip to the provider so scan, watch or tune only one channel at a time.
I download the m3u file and save it in a location on my computer as follows: /home/hts/tv-tvh.m3u

TvH is configured as such:

DVBinputs-->Networks-->added here a new "network"
I have set there:
Maximum # input streams: 1
URL: file:///home/hts/tv-tvh.m3u
Scan after creation: unticked box, as not desired
Maximum timeout (seconds): 5
I choose 5 seconds because this way when a channel does not work, which is the case with quite a bit of them, it will not wait for 30 seconds to move on, this way it will complete the whole list of 5000+ entires in 7-8 hours, so a good night sleep.
Skip initial scan: ticked box, cux desired
Idle scan muxes: unticked box, as not desired

after this I apply & save, then I hit "force scan" and it starts scanning, after 7-8 hours done, I can go to "services" tab and "map all channels" and they appear in channels list and in my clients and everything works.

At the moment I have a cron job running that downloads the m3u list for me every 48 hours and saves/replaces the aforementioned /home/hts/tv-tvh.m3u file which I have mentioned as the "URL" for my IPTV network in tvh settings.
How often does tvh read that file, every so many hours or only when starting the tvh services or only once when the network is added?
Would there be a way to trigger tvh to read that file every e.g. 48 hours and update the services automatically and automatically map all services to channels (rather then having to replicate these steps manually each time)?
Or as most channels keep the same in the list, but sometime the source URL for the stream info changes slightly, so if the services that were mapped to channels could stay in the list and only the stream url info-bit is updated that would already save a lot of time.

In another machine where i use dvb-s, with an older version of tvh I'm able to create the chans entries in the hts directories directly myself (via cli in the directly, i know very crude but did the trick for me, see here https://tvheadend.org/boards/4/topics/9251?r=9273#message-9273). I tried to do the same here but in this version of tvh, tvh seems to use database entries as channel entries so my workaround does not work for my other scenario.
thank you for any help or suggestions in advance :)
There are also other ppl with same issues, e.g. https://tvheadend.org/issues/4174 or threat https://tvheadend.org/boards/4/topics/23265?r=24360#message-24360


Replies (33)

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by jody gugelhop over 4 years ago

Giuseppe Sicilia wrote:

Main-Topic:
We could set a feature-request: "add iptv streams without scans". Does someone know where to do this?

@lion:
I cannot help regarding 'mux without services'. I changed from my new provider back to my old one... Its a bug and nobody know where its coming from.

good idea, just did:
https://tvheadend.org/issues/4347

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by hag gos 12 months ago

Also had this problem , wrote a simple tool for this cases :

https://github.com/hagaygo/tvheadendm3usync

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by Dimitar Maznekov 12 months ago

hag gos wrote:

Also had this problem , wrote a simple tool for this cases :

https://github.com/hagaygo/tvheadendm3usync

Can you compile it as .exe to test it under Linux OS ?

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by hag gos 12 months ago

Hi

There is a compiled version on github :

https://github.com/hagaygo/tvheadendm3usync/releases/tag/0.1

Just extract the zip to a folder on your linux machine.

Now both for windows and linux you need to have .Net core runtime installed.

you can run the tool using the "dotnet" binary (dotnet TVHeadEndM3USync.dll) the .exe file will work only on windows which have .net core installed.

If you have any issues/bug/ideas for the tool, feel free to open issues on github.

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by Tony Wagner 6 months ago

hag gos wrote:

Also had this problem , wrote a simple tool for this cases :

https://github.com/hagaygo/tvheadendm3usync

Just wanted to say, thanks for sharing this! Now I can just update my local M3U playlist, and let your tool run periodically to transfer any changes to TVHeadend.

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by Carolyn Pierce 6 months ago

I have personally tried emby and plex and at this moment I would recommend to go for plex if any of the 2. [https://get-vidmateapp.com/]] [[https://get-mobdroapk.com/]]

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by Aditza N about 2 months ago

hag gos wrote:

Hi

There is a compiled version on github :

https://github.com/hagaygo/tvheadendm3usync/releases/tag/0.1

Just extract the zip to a folder on your linux machine.

Now both for windows and linux you need to have .Net core runtime installed.

you can run the tool using the "dotnet" binary (dotnet TVHeadEndM3USync.dll) the .exe file will work only on windows which have .net core installed.

If you have any issues/bug/ideas for the tool, feel free to open issues on github.

Thank you for this; works fine, saved me quite a bit of manual work.
Now my mistake, I have deleted the m3u file created first time I have run your tool. I have a job that runs every night and overwrites both m3u and epg from m3u4u (saves me some work on mapping the epg)
Is there a way to force re-save the UUID on m3u file that does have same channels IPTV URL's and does not have it the TVH-UUID?

RE: IPTV & tvheadend, m3u, playlist, channel scan - Added by hag go about 2 months ago

Currently there is no option to compare by URL, only by UUID (do note there can be more than one service with same URL).
About file deletion , every change the app keeps a backup file before making a change , i guess this is your only hope.

(26-33/33)