From f95b1fa68aa2d5204cd35acd4bc181e1b852fc3c Mon Sep 17 00:00:00 2001 From: PKC278 <52959804+PKC278@users.noreply.github.com> Date: Sat, 10 Jan 2026 01:31:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(rousi):=20=E4=BF=AE=E6=AD=A3=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/indexer/spider/rousi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modules/indexer/spider/rousi.py b/app/modules/indexer/spider/rousi.py index 4e782d44..aacbee83 100644 --- a/app/modules/indexer/spider/rousi.py +++ b/app/modules/indexer/spider/rousi.py @@ -33,7 +33,7 @@ class RousiSpider(metaclass=SingletonClass): _timeout = 15 # 分类定义 - _movie_category = ['movie'] + _movie_category = ['movie', 'documentary', 'animation'] _tv_category = ['tv', 'documentary', 'animation', 'variety'] _apikey = None @@ -166,9 +166,9 @@ class RousiSpider(metaclass=SingletonClass): if cat_val: cat_val = str(cat_val).lower() - if cat_val in ['movie', 'documentary']: + if cat_val in self._movie_category: category = MediaType.MOVIE.value - elif cat_val in ['tv', 'animation', 'variety', 'sports']: + elif cat_val in self._tv_category: category = MediaType.TV.value # 解析促销信息