Made spotify playlist name validation less strict (#28684)
parent
ce8e0e5489
commit
1495df374b
|
@ -307,7 +307,7 @@ class SpotifyMediaPlayer(MediaPlayerDevice):
|
||||||
|
|
||||||
def play_playlist(self, media_id, random_song):
|
def play_playlist(self, media_id, random_song):
|
||||||
"""Play random music in a playlist."""
|
"""Play random music in a playlist."""
|
||||||
if not media_id.startswith("spotify:playlist:"):
|
if not media_id.startswith("spotify:"):
|
||||||
_LOGGER.error("media id must be spotify playlist uri")
|
_LOGGER.error("media id must be spotify playlist uri")
|
||||||
return
|
return
|
||||||
kwargs = {"context_uri": media_id}
|
kwargs = {"context_uri": media_id}
|
||||||
|
|
Loading…
Reference in New Issue