linuxmint / hypnotix

An M3U IPTV Player
1.26k stars 168 forks source link

group-title="SERIES" problem on hypnotix #170

Closed dasaferi closed 3 years ago

dasaferi commented 3 years ago

Hi, i have see group-title="SERIES" attribute does not work in hypnotix, entries with this "tag" are not read in hypnotix do not appear in the Series block, if you try group-title="VOD" go in the Movies group, I think there is some problem with the group-title="SERIES" attribute. Can you verify and in case fix the problem?

Axel-Erfurt commented 3 years ago

Read my explanation about series

https://github.com/Axel-Erfurt/hypnotix#howto-make-playlists-for-series

lulol commented 3 years ago

@Axel-Erfurt Was struggling to understand how to add content for series and movies until I did read you explanation. Thanks!

Could you add to that explanation the movies group, that just uses the VOD string, and submit a PR?

dasaferi commented 3 years ago

Read my explanation about series

https://github.com/Axel-Erfurt/hypnotix#howto-make-playlists-for-series

Thanks, the method you recommended works, but how do I put the "episode" name?

My example of row now:

EXTINF:-1 tvg-name="Lesson S01E01" group-title="SERIES Lesson",the eye

file:///home/dasaferi/Videos/Lesson/the_eye.mp4

the name of episode is the eye

lulol commented 3 years ago

@dasaferi As far as I've seen at the moment it's not possible to put episode names.

You can try a quick hack changing line 16 in /usr/lib/hypnotix/common.py: https://github.com/linuxmint/hypnotix/blob/23f0350b9f9bce0afab196c0d1638e885d455a35/usr/lib/hypnotix/common.py#L16 to:

SERIES = re.compile(r"(?P<series>.*?) S(?P<season>.\d{1,2}).*E(?P<episode>.\d{1,2}.*)$", re.IGNORECASE) 

And then the row would be:

#EXTINF:-1 tvg-name="Lesson S01E01 the eye" group-title="SERIES Lesson",
file:///home/dasaferi/Videos/Lesson/the_eye.mp4

I've tried that and works, but be advised that this is just a quick hack and not a proper solution. Also I didn't check what collateral effects could this have in hypnotix behaviour.

dasaferi commented 3 years ago

I've tried that and works, but be advised that this is just a quick hack and not a proper solution. Also I didn't check what collateral effects could this have in hypnotix behaviour.

thanks lulol for the moment it seems to work perfectly, from what I understand it works until you not update hypnotix because it is a change not officially implemented.