diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index a6be99f..4533353 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -848,7 +848,7 @@ def on_favorite_button_toggled(self, widget): if self.page_is_loading: return name = self.active_channel.name - data = f"{self.active_channel.info}:::{self.active_channel.url}" + data = f"{getattr(self.active_channel, 'info', '')}:::{self.active_channel.url}" if widget.get_active() and data not in self.favorite_data: print (f"Adding {name} to favorites") self.favorite_data.append(data) @@ -908,7 +908,7 @@ def before_play(self, channel): self.label_channel_url.set_text(channel.url) self.page_is_loading = True - data = f"{channel.info}:::{channel.url}" + data = f"{getattr(channel, 'info', '')}:::{channel.url}" if data in self.favorite_data: self.favorite_button.set_active(True) self.favorite_button_image.set_from_icon_name("xsi-starred-symbolic", Gtk.IconSize.BUTTON)