mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
simpler
This commit is contained in:
parent
3b58e8628d
commit
ffbaf0cd5a
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user