Made spotify playlist name validation less strict (#28684)

pull/27104/head
springstan 2019-11-24 20:53:26 +01:00 committed by Fabian Affolter
parent ce8e0e5489
commit 1495df374b
1 changed files with 1 additions and 1 deletions

View File

@ -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}