mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
simpler
This commit is contained in:
@@ -127,8 +127,7 @@ class Itunes(object):
|
||||
|
||||
found_playlists = \
|
||||
[playlist for playlist in playlists if
|
||||
playlist["name"] == playlist_id_or_name or
|
||||
playlist["id"] == playlist_id_or_name]
|
||||
(playlist_id_or_name in [playlist["name"], playlist["id"]])]
|
||||
|
||||
if len(found_playlists) > 0:
|
||||
playlist = found_playlists[0]
|
||||
|
Reference in New Issue
Block a user