From 13b6ea985edd936af1aaf84b35ea2fa25e6eb68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B8=8A?= <2801788267@qq.com> Date: Tue, 22 Jul 2025 18:52:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8F=E8=A7=88=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=97=B6=E5=88=86=E7=B1=BB=E5=8F=AF=E8=83=BD=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=EF=BC=8C=E4=BD=BF=E7=94=A8split=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E5=88=86=E7=B1=BBid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/indexer/spider/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/indexer/spider/__init__.py b/app/modules/indexer/spider/__init__.py index 618d7573..d213dd00 100644 --- a/app/modules/indexer/spider/__init__.py +++ b/app/modules/indexer/spider/__init__.py @@ -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"), "")