mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix(mediaserver): improve data isolation handling
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user