Adjust Sonos for updated Spotify media browsing (#66508)
This commit is contained in:
parent
09e59e5887
commit
5be5a014f3
2 changed files with 3 additions and 14 deletions
|
@ -522,6 +522,7 @@ class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
|
|||
"""
|
||||
if spotify.is_spotify_media_type(media_type):
|
||||
media_type = spotify.resolve_spotify_media_type(media_type)
|
||||
media_id = spotify.spotify_uri_from_media_browser_url(media_id)
|
||||
|
||||
if media_source.is_media_source_id(media_id):
|
||||
media_type = MEDIA_TYPE_MUSIC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue