From 4d9eeccefa9d499f75c39a3d371f0410a2c4e4af Mon Sep 17 00:00:00 2001 From: Zifan Ying <54168673+pluto0x0@users.noreply.github.com> Date: Mon, 15 Sep 2025 00:31:45 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20mtorrent=E6=90=9C=E7=B4=A2imdb=E6=97=B6?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=AE=8C=E6=95=B4=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: mtorrent搜索imdb时需要提供完整链接(例如https://www.imdb.com/title/tt3058674) keyword为imdb条目时添加链接前缀 参考 https://wiki.m-team.cc/zh-tw/imdbtosearch issue: https://github.com/jxxghp/MoviePilot/issues/4941 --- app/modules/indexer/spider/mtorrent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/modules/indexer/spider/mtorrent.py b/app/modules/indexer/spider/mtorrent.py index d5f9403d..7c94c015 100644 --- a/app/modules/indexer/spider/mtorrent.py +++ b/app/modules/indexer/spider/mtorrent.py @@ -75,6 +75,9 @@ class MTorrentSpider: categories = self._tv_category else: categories = self._movie_category + # mtorrent搜索imdb需要输入完整imdb链接,参见 https://wiki.m-team.cc/zh-tw/imdbtosearch + if keyword.startswith("tt"): + keyword = f"https://www.imdb.com/title/{keyword}" return { "keyword": keyword, "categories": categories,