mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-02-03 10:35:15 +08:00
fix: 浏览资源时分类可能不生效,使用split后再对比分类id
This commit is contained in:
@@ -156,8 +156,9 @@ class SiteSpider:
|
||||
cats = self.category.get("movie") or []
|
||||
else:
|
||||
cats = (self.category.get("movie") or []) + (self.category.get("tv") or [])
|
||||
allowed_cats = set(self.cat.split(',')) if self.cat else None
|
||||
for cat in cats:
|
||||
if self.cat and str(cat.get("id")) not in self.cat:
|
||||
if allowed_cats and str(cat.get('id')) not in allowed_cats:
|
||||
continue
|
||||
if self.category.get("field"):
|
||||
value = params.get(self.category.get("field"), "")
|
||||
|
||||
Reference in New Issue
Block a user