Check Sonos for local library before browsing (#40085)
This commit is contained in:
parent
2ea604cc2a
commit
8236394b85
1 changed files with 7 additions and 0 deletions
|
@ -1547,6 +1547,13 @@ def library_payload(media_library):
|
|||
|
||||
Used by async_browse_media.
|
||||
"""
|
||||
if not media_library.browse_by_idstring(
|
||||
"tracks",
|
||||
"",
|
||||
max_items=1,
|
||||
):
|
||||
raise BrowseError("Local library not found")
|
||||
|
||||
children = []
|
||||
for item in media_library.browse():
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue