mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-02 06:00:56 +08:00
fix: 浏览资源时分类可能不生效,使用split后再对比分类id
This commit is contained in:
@@ -156,8 +156,9 @@ class SiteSpider:
|
|||||||
cats = self.category.get("movie") or []
|
cats = self.category.get("movie") or []
|
||||||
else:
|
else:
|
||||||
cats = (self.category.get("movie") or []) + (self.category.get("tv") or [])
|
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:
|
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
|
continue
|
||||||
if self.category.get("field"):
|
if self.category.get("field"):
|
||||||
value = params.get(self.category.get("field"), "")
|
value = params.get(self.category.get("field"), "")
|
||||||
|
|||||||
Reference in New Issue
Block a user