From c12b74095cb121f678674ae1635abf97389d2351 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 18 Jul 2023 07:42:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/chain/search.py b/app/chain/search.py index 36aa2bb6..2efca631 100644 --- a/app/chain/search.py +++ b/app/chain/search.py @@ -155,6 +155,10 @@ class SearchChain(ChainBase): title, subtitle = torrent.title, torrent.description # 识别 torrent_meta = MetaInfo(title=title, subtitle=subtitle) + # 比对类型 + if torrent_meta.type == MediaType.TV and mediainfo.type != MediaType.TV: + logger.warn(f'{torrent.site_name} - {torrent.title} 类型不匹配') + continue # 比对年份 if mediainfo.year and torrent_meta.year: if mediainfo.type == MediaType.TV: