From c80bfbfac5f5fc6c6e38733e379af0f3b6b81a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Wed, 17 Sep 2025 01:59:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8F=E8=A7=88=E9=A6=92=E5=A4=B4?= =?UTF-8?q?=E6=8A=A5=E9=94=99NoneType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/indexer/spider/mtorrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/indexer/spider/mtorrent.py b/app/modules/indexer/spider/mtorrent.py index 7c94c015..b694df56 100644 --- a/app/modules/indexer/spider/mtorrent.py +++ b/app/modules/indexer/spider/mtorrent.py @@ -76,7 +76,7 @@ class MTorrentSpider: else: categories = self._movie_category # mtorrent搜索imdb需要输入完整imdb链接,参见 https://wiki.m-team.cc/zh-tw/imdbtosearch - if keyword.startswith("tt"): + if keyword and keyword.startswith("tt"): keyword = f"https://www.imdb.com/title/{keyword}" return { "keyword": keyword,