Project

General

Profile

Feature #4459

exported m3u playlist - add group-title= parameter

Added by kodiaq kodiaq over 7 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
Start date:
2017-11-20
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)

Description

tvh-tags="MUSIC"

from input M3U file translates to

channel tag="MUSIC"

in tvh webui, but generated output M3U file does not contain

group-title="MUSIC"

Implementation of group-title in output M3U file would allow clients like Smart IPTV, VLC etc. to group channels according to channel tag scheme.


Subtasks

Feature #4731: Exporting M3U file with group-titleRejected

Actions

History

#1

Updated by Jaroslav Kysela over 7 years ago

It's a bit incosistent proposal. The channel in TVH can have multiple tags, so it's not so obvious which tag should be selected.

#2

Updated by kodiaq kodiaq over 7 years ago

Know what you mean.

Input M3U can written as:

#EXTINF:-1 tvh-tags="MUSIC|GENERAL",MTV Live HD

or

#EXTINF:-1 tvh-tags="GENERAL|MUSIC",MTV Live HD

Output M3U file would than have the group-title inherited from the first tvh-tag.

#3

Updated by Jaroslav Kysela over 7 years ago

But what tag is first? You can add also other tags to the channel - there's no order.

#4

Updated by kodiaq kodiaq over 7 years ago

Agree.

There would have to be probably new tvh tag called "tvh-group" in the input file which could only have one name of the group category and that could be than somehow translated to group-title in the output M3U file.

I am sure Jaroslav you can already see in your mind dozen of possible solutions, but at least I gave you the first jog impulse :)

#5

Updated by saen acro over 7 years ago

There is a some other M3U tags request
one of them is a user controllable export via UI

ex
export all services "by tag", "by caid", "by operator", "by language", "by type", "by source"

---------
there is a old history of closed tickets :)
#2257 #1908
---------
Programmers need to cure his allergy to write in Forum ;)

Solution can be implemented when #2762 is solved
transferred filtered info can generate playlist with all needed

#6

Updated by kodiaq kodiaq over 7 years ago

I can see, not a straightforward solution for now.

Anyways thanks for quick reaction and great work :)

#7

Updated by Jaroslav Kysela over 7 years ago

Another quick idea when I'm digging through this: Do this filtering and ordering at the export side. I just don't like to add extra flag/index to channel tags for m3u export. Use HTTP argument for the m3u playlist generator like '?group-title=tag1|tag2|tag3' and fill group-title for the first present channel tag from this list preserving the order.

#8

Updated by kodiaq kodiaq over 7 years ago

It is similar idea that I've had, but you see into the programming side of it.

If it is something easy to implement/compile try to give it a go.

If not, than we can wait until the code is more ready for this to happen.

#9

Updated by Jaroslav Kysela over 7 years ago

  • Target version set to 4.4
#10

Updated by Jaroslav Kysela over 7 years ago

  • Subject changed from tvh-tags="MUSIC" ---> channel tag="MUSIC" ---> group-title="MUSIC" to exported m3u playlist - add group-title= parameter
#11

Updated by saen acro over 7 years ago

Some of tags used by players are described on IP-TV Player page CLICK on Russian (bing translate, google translate etc. native reading ;) )

  • tvg-name / tvg-id - имя/идентификатор канала в файле телепрограммы (можно не указывать если совпадает с названием канала; id имеет приоритет над name)
  • tvg-shift - коррекция по времени, в часах (...-2, -1, 0, +1, +2, ...) <---EPG friendly
  • tvg-logo - имя логотипа канала из встроенной базы или папки Icons\имя.bmp (можно не указывать если совпадает с названием канала) или прямая ссылка на изображение png/jpg/gif/bmp (v8838 и выше)
  • aspect-ratio - соотношение сторон (None, 4:3, 16:9, ...) <---Very good to have, transcoding friendly
  • audio-track - номер аудио-дорожки (0, 1, 2, ...)
  • group-title - заголовок группы каналов
#12

Updated by Andreas Fornberg over 7 years ago

Yeah this would be nice and that tvg-shift thing have been a request by me for a while now for example for +1 channels or if EPG is wrong of some other reason.

#13

Updated by Andreas Fornberg almost 7 years ago

Anyone working on this?

#14

Updated by Pablo R. almost 7 years ago

Andreas Fornberg wrote:

Anyone working on this?

I would like to see that soon... ;)

#15

Updated by saen acro almost 7 years ago

Pablo Rodríguez wrote:

Andreas Fornberg wrote:

Anyone working on this?

I would like to see that soon... ;)

+1 if some one start with this

also this

#EXTM3U x-tvg-url="EPG_url" 

will be very good

#16

Updated by Mono Polimorph almost 7 years ago

Hi,

I'm not using this functionality at time. However, sometime ago I have tested the IPTV client in some smartTVs. So I have this suggestion:

  • Instead of using fixed tags, let the user to assign the name of the tag. This is needed because the M3U tags aren't (at time) standarized. So, the idea can be let the user to replace the name.

You agree?

#17

Updated by Pablo R. almost 7 years ago

Mono Polimorph wrote:

Hi,

I'm not using this functionality at time. However, sometime ago I have tested the IPTV client in some smartTVs. So I have this suggestion:

  • Instead of using fixed tags, let the user to assign the name of the tag. This is needed because the M3U tags aren't (at time) standarized. So, the idea can be let the user to replace the name.

You agree?

Looks good too

#18

Updated by saen acro almost 7 years ago

In most of smarttv's SSIPTV app can be very good if some tags are added

#19

Updated by Andreas Fornberg almost 7 years ago

Mono Polimorph wrote:

Hi,

I'm not using this functionality at time. However, sometime ago I have tested the IPTV client in some smartTVs. So I have this suggestion:

  • Instead of using fixed tags, let the user to assign the name of the tag. This is needed because the M3U tags aren't (at time) standarized. So, the idea can be let the user to replace the name.

You agree?

And if you have many channels and groups?
That will be a lot of work for something simple just export as "group-title" that all clients i have seen supports.

#20

Updated by Andreas Fornberg almost 7 years ago

Ok multiple groups have no standard yet but in that case maybe export with tag with highest priority first or something.

#21

Updated by Ted -- over 5 years ago

Hi,
Anyone working on this?

#22

Updated by Flole Systems over 5 years ago

Not yet I think, feel free to do it!

#23

Updated by Flole Systems almost 4 years ago

  • Target version changed from 4.4 to 4.6
#24

Updated by Andreas Fornberg over 2 years ago

Come on this can't be that hard to fix?
Any other serversoftware i have seen can do this.

#25

Updated by Flole Systems over 2 years ago

Go ahead and fix it then, waiting for your PR, if it's not hard then you should be able to do it.

#26

Updated by Andreas Fornberg over 2 years ago

Flole Systems wrote:

Go ahead and fix it then, waiting for your PR, if it's not hard then you should be able to do it.

I would do that if i was a programmer and can't do more than small changes.
If it's more than 1 group just export the channel for each group that should not be hard to fix for a programmer.

#27

Updated by Andreas Fornberg over 2 years ago

For now i have solved it with this little hack.

wget -q "http://<ip>:9981/xmltv/channels?auth=<authtoken>" -O tivi.xml
wget -q "http://<ip>:9981/playlist/tags/auth?auth=<authtoken>&profile=pass" -O tivitags.m3u

echo '#EXTM3U' >tivi.m3u
sed -i -e 's/.*tagid\///' tivitags.m3u
sed -i -e 's/\?profile\=pass//' tivitags.m3u
sed -i -e 's/#EXTINF:-1 type=\"playlist\",//' tivitags.m3u
sed -i -e '1d' tivitags.m3u

while read line1; read line2; do
  wget -q "http://<ip>:9981/playlist/tagid/$line2&auth?auth=<authtoken>&profile=pass" -O tivitemp.m3u
  sed -i -e 's/profile\=pass/auth=<authtoken>\&profile\=pass/g' tivitemp.m3u
  sed -i -e 's/tvg-chno/group-title\='\""$line1"\"' tvg-chno/g' tivitemp.m3u
  sed -n 2,10000p tivitemp.m3u >>tivi.m3u
done < "tivitags.m3u" 

sed -i -e 's/tvg-chno\ /\& /' tivi.m3u
rm -f tivitemp.m3u tivitags.m3u

Also available in: Atom PDF