This commit is contained in:
Jon Maddox 2015-10-07 02:02:25 -04:00
parent c2fe977778
commit 3b58e8628d

View File

@ -125,8 +125,9 @@ class Itunes(object):
response = self._request('GET', '/playlists')
playlists = response.get('playlists', [])
found_playlists = [playlist for playlist in
playlists if playlist["name"] == playlist_id_or_name or
found_playlists = \
[playlist for playlist in playlists if
playlist["name"] == playlist_id_or_name or
playlist["id"] == playlist_id_or_name]
if len(found_playlists) > 0: