fix(mediaserver): improve data isolation handling

This commit is contained in:
InfinityPacer
2024-10-02 10:39:04 +08:00
parent f8149afb6e
commit fb61eda831
3 changed files with 8 additions and 4 deletions
+2
View File
@@ -91,6 +91,7 @@ class Emby:
library_items = res.json().get("Items")
librarys = []
for library_item in library_items:
library_id = library_item.get('ItemId')
library_name = library_item.get('Name')
pathInfos = library_item.get('LibraryOptions', {}).get('PathInfos')
library_paths = []
@@ -102,6 +103,7 @@ class Emby:
if library_name and library_paths:
librarys.append({
'Id': library_id,
'Name': library_name,
'Path': library_paths
})