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,