linuxmint / hypnotix

An M3U IPTV Player
1.26k stars 169 forks source link

Potential bug: Un-grouped channels aren't allways dislpayed. #206

Open Scuz3000 opened 2 years ago

Scuz3000 commented 2 years ago

I found what might be a potential bug in Hypnotix.

So when all the channels in a playlist have group titles, the channels are grouped accordingly. When none of the channels have group titles, channels are displayed un-grouped (obviously!).

But when some of the channels in a playlist have group titles and others do not, the ones that don't have group titles are not displayed at all.

Image1

Image2

Axel-Erfurt commented 2 years ago

That's true, you can try this

in common.py change lines 107-108

                if "group-title" in params and params['group-title'].strip() != "":
                    self.group_title = params['group-title'].strip().replace(";", " ").replace("  ", " ")

to

                if "group-title" in params and params['group-title'].strip() != "":
                    self.group_title = params['group-title'].strip().replace(";", " ").replace("  ", " ")
                else:
                    self.group_title = 'Untitled'
Scuz3000 commented 2 years ago

That's true, you can try this

in common.py change lines 107-108

                if "group-title" in params and params['group-title'].strip() != "":
                    self.group_title = params['group-title'].strip().replace(";", " ").replace("  ", " ")

to

                if "group-title" in params and params['group-title'].strip() != "":
                    self.group_title = params['group-title'].strip().replace(";", " ").replace("  ", " ")
                else:
                    self.group_title = 'Untitled'

Thanks for the reply, but it doesn't look like I can edit that file while booting from a LiveUSB, a situation I'm unfortunately stuck with at the moment.