Fix handling of directory type playlists in Plex (#122990)
Ignore type directory
This commit is contained in:
parent
4f3d624353
commit
fef9c92eb7
1 changed files with 5 additions and 1 deletions
|
@ -132,7 +132,11 @@ def browse_media( # noqa: C901
|
|||
"children": [],
|
||||
}
|
||||
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
|
||||
try:
|
||||
playlists_info["children"].append(item_payload(playlist))
|
||||
|
|
Loading…
Add table
Reference in a new issue