mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix handling of directory type playlists in Plex (#122990)
Ignore type directory
This commit is contained in:
parent
4f3d624353
commit
fef9c92eb7
@ -132,7 +132,11 @@ def browse_media( # noqa: C901
|
|||||||
"children": [],
|
"children": [],
|
||||||
}
|
}
|
||||||
for playlist in plex_server.playlists():
|
for playlist in plex_server.playlists():
|
||||||
if playlist.playlistType != "audio" and platform == "sonos":
|
if (
|
||||||
|
playlist.type != "directory"
|
||||||
|
and playlist.playlistType != "audio"
|
||||||
|
and platform == "sonos"
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
playlists_info["children"].append(item_payload(playlist))
|
playlists_info["children"].append(item_payload(playlist))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user