Skip to content

Commit

Permalink
Allow controls for TIDAL Connect (#31)
Browse files Browse the repository at this point in the history
* Allow controls for TIDAL Connect

HEOS U34 added support for TIDAL Connect. When playing, the source id is
always `0`. All normal player controls are supported in this case.

* Merge conflic fixes

* Fix const

---------

Co-authored-by: Andrew Sayre <6730289+andrewsayre@users.noreply.github.com>
  • Loading branch information
klada and andrewsayre authored Jan 5, 2025
1 parent df742e5 commit 8a35fbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyheos/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class MediaType(StrEnum):


# Music Sources
MUSIC_SOURCE_CONNECT: Final = 0 # TIDAL Connect // possibly Spotify Connect as well (?)
MUSIC_SOURCE_PANDORA: Final = 1
MUSIC_SOURCE_RHAPSODY: Final = 2
MUSIC_SOURCE_TUNEIN: Final = 3
Expand Down Expand Up @@ -174,6 +175,7 @@ class MediaType(StrEnum):
CONTROL_PLAY_STOP: Final = [CONTROL_PLAY, CONTROL_STOP]

SOURCE_CONTROLS: Final = {
MUSIC_SOURCE_CONNECT: {MediaType.STATION: CONTROLS_ALL},
MUSIC_SOURCE_PANDORA: {MediaType.STATION: CONTROLS_FORWARD_ONLY},
MUSIC_SOURCE_RHAPSODY: {
MediaType.SONG: CONTROLS_ALL,
Expand Down

0 comments on commit 8a35fbb

Please sign in to comment.