Skip to content

Fix AttributeError: 'Channel' object has no attribute 'info' (#326)#412

Open
CoderBoxer wants to merge 1 commit intolinuxmint:masterfrom
CoderBoxer:fix/channel-info-attribute
Open

Fix AttributeError: 'Channel' object has no attribute 'info' (#326)#412
CoderBoxer wants to merge 1 commit intolinuxmint:masterfrom
CoderBoxer:fix/channel-info-attribute

Conversation

@CoderBoxer
Copy link
Copy Markdown

Overview

Fixes an AttributeError crash that occurs when attempting to play or favorite streams from Xtream providers.

Changes

  • Refactored the string construction inside both before_play and on_favorite_button_toggled.
  • Replaced direct .info access with getattr(channel, 'info', '') (or self.active_channel).
  • This defensively handles Xtream Channel objects that lack the .info property, preventing a hard crash while safely preserving the data and ::: string formatting for standard M3U channels that still rely on it.

Closes #326

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.

Hypnotix 4.3 - Xtream API : AttributeError: 'Channel' object has no attribute 'info'

1 participant