修复极影视媒体库同步不全:展开 BoxSet 合集子项 (#5954)

This commit is contained in:
ch3njun
2026-06-16 06:35:58 +08:00
committed by GitHub
parent 8ad8b5eaad
commit 1c60d8ccd7
2 changed files with 110 additions and 5 deletions
+8 -1
View File
@@ -848,7 +848,14 @@ class ZSpace:
result = res.json() or {}
items = result.get("Items") or []
for item in items:
if not item or item.get("Type") not in ["Movie", "Series"]:
if not item:
continue
if item.get("Type") == "BoxSet" and item.get("Id"):
for sub_item in self.get_items(parent=item.get("Id")):
if sub_item:
yield sub_item
continue
if item.get("Type") not in ["Movie", "Series"]:
continue
provider_ids = item.get("ProviderIds") or {}
needs_detail = (