(Solved) - Automatic IPTV channel number assignment from M3U

Post here your ideas on how to make TVMosaic product better
Post Reply
Montoya
Posts: 230
Joined: Mon Feb 26, 2018 9:07 am

(Solved) - Automatic IPTV channel number assignment from M3U

Post by Montoya » Tue Feb 27, 2018 1:41 pm

For numbering iptv channels, no feature is yet in place, to automate channel number assignment in TVMosaic, for iptv channels from M3U.

In an other well known Media server software package which I use, in M3U the tag <channel-id="x"> can be used for assigning channel numbers, where x=channel number. So when a M3U is loaded in that Media server, channel number assignment is done automatically.

This way, each user can prepare a personal M3U with channel numbers to their liking.
What are your thoughts about implementing this in a future release of TVMosaic ?
Last edited by Montoya on Sun Apr 08, 2018 7:58 pm, edited 2 times in total.
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 17679, Kodi 18.4 (Git:20190831-3ade758ceb), Win10 Pro x64 1903 build18362.449

Montoya
Posts: 230
Joined: Mon Feb 26, 2018 9:07 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Montoya » Fri Apr 06, 2018 5:53 pm

Oberon wrote:
Fri Apr 06, 2018 12:32 pm
The thing is that I am hesitant to use channel-id as a tag for channel number, because it is not what it is. If we do that we will be misusing the tag.
I would rather go with smth. like tvg-num for channel number and tvg-type for channel type (radio vs. tv, which is also missing)
Indeed channel-id tag is used only by, as far as I know, by a well known media server package, I also use. But other users can chime in for more feedback.

What I suggest is to use the following tag for the channel number:

tvg-chno="x" (where x is the channel number)

This tag is also used in Kodi PVR "IPTV Simple Client" and is also used by a commercial IPTV EPG provider in the m3u they provide for the user, which is automatically kept up to date, with provider channels changes, as part of the EPG subscription (their online m3u editor automates the process of channels changes of the users iptv provider regarding EPG and more)

So users from PVR IPTV Simple Client and users from that EPG provider, that are already using the tvg-chno tag can than migrate easily, because their m3u is already prepared with right channel numbers from tvg-chno tags and tvg-id tags for automated channel number and EPG mapping in TVMosaic.
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 17679, Kodi 18.4 (Git:20190831-3ade758ceb), Win10 Pro x64 1903 build18362.449

Amatøren
Posts: 46
Joined: Mon Mar 26, 2018 8:27 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Amatøren » Fri Apr 06, 2018 9:47 pm

@Montoya: Can you please post some lines from the m3u play list file?

I'm making a Linux script for creating m3u play list file and EPG file from Enigma2 STB's.

It would be nice if I use a "standard" for extra tag's.

I have all text in tag's defined in a config file.

Montoya
Posts: 230
Joined: Mon Feb 26, 2018 9:07 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Montoya » Sat Apr 07, 2018 7:53 am

@Amatøren

An iptv m3u with tag options, can look like this:

Code: Select all

#EXTM3U
#EXTINF:-1 tvg-chno="a" tvg-id="b" tvg-name="c" tvg-logo="d" group-title="e",f
http://stream.url
a=channel number (not yet implemented in TVMosaic)
b=channel-id from EPG xml (for automatic EPG mapping)
c=channel name (this name is shown in channel list/guide)
d=logo URL (for automatic logo mapping)
e=group name (for automatic group/favorites mapping)
f=channel name (used as channel name when tvg-name tag is not present)

A plain m3u (what DVBLink uses) only contains this:

Code: Select all

#EXTM3U
#EXTINF:-1,channel name
http://stream.url
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 17679, Kodi 18.4 (Git:20190831-3ade758ceb), Win10 Pro x64 1903 build18362.449

Oberon
Posts: 1288
Joined: Thu Jan 26, 2017 8:45 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Oberon » Sat Apr 07, 2018 10:53 am

Looks good to me.
We will add processing of the following tags then:

tvg-chno="x.y", where x - channel number and y - optional subnumber. If subnumber is not present then tag will be tvg-chno="x"

tvg-type="tv/radio". The value is either tv or radio. If tag is absent then channel is considered tv.

Amatøren
Posts: 46
Joined: Mon Mar 26, 2018 8:27 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Amatøren » Sat Apr 07, 2018 11:44 am

Great! Thank you both. 👍

Looks like we are going for (creating?) a standard of tag's.

Montoya
Posts: 230
Joined: Mon Feb 26, 2018 9:07 am

Re: Feature request - Automatic IPTV channel number assignment from M3U

Post by Montoya » Sat Apr 07, 2018 12:14 pm

Oberon wrote:
Sat Apr 07, 2018 10:53 am
Looks good to me.
We will add processing of the following tags then:

tvg-chno="x.y", where x - channel number and y - optional subnumber. If subnumber is not present then tag will be tvg-chno="x"

tvg-type="tv/radio". The value is either tv or radio. If tag is absent then channel is considered tv.
Agreed, logical decision which covers all and makes live easier for iptv m3u maintenance, because no additional setup work with channel management has to be done anymore in TVMosaic, when a (locally) prepared m3u is loaded into TVMosaic :D
Thanks !!
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 17679, Kodi 18.4 (Git:20190831-3ade758ceb), Win10 Pro x64 1903 build18362.449

Oberon
Posts: 1288
Joined: Thu Jan 26, 2017 8:45 am

Re: (Solved) - Automatic IPTV channel number assignment from M3U

Post by Oberon » Fri Apr 13, 2018 3:38 pm

Added in build 16090.

Post Reply