Skip to content

Fix favourites button icon, tooltip and lookup - #437

Open
fridrich wants to merge 1 commit into
linuxmint:masterfrom
fridrich:fix-favourites
Open

fridrich wants to merge 1 commit into
linuxmint:masterfrom
fridrich:fix-favourites

Conversation

@fridrich

@fridrich fridrich commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes for the "Add to favorites" star button on the channel page.

Wrong icon name

When a channel is removed from favorites, the icon is set to non-xsi-starred-symbolic, which doesn't exist. The button loses its icon. Now xsi-non-starred-symbolic, the name already used in before_play().

Stale tooltip

The tooltip was only set when a channel started playing. After toggling the star it kept saying "Add to favorites" / "Remove from favorites" from before the click. It is now updated on toggle.

Crash when no channel is active

active_channel is None at startup and after Stop. Toggling the button then raised AttributeError on self.active_channel.name. The handler now returns early in that case.

Lookup tolerant of extra fields

before_play() matched a favorites line exactly against info:::url. It now also accepts lines that start with info:::url:::. Existing favorites files behave the same. This lets later changes append extra fields to a favorites line, e.g. EPG metadata, without the star losing track of the channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant