From 33f4dd34404b84d1f340bb2f942bf2937fc53ead Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 8 Jul 2024 16:39:54 +0800 Subject: [PATCH 1/4] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ac58481..28f2ca0 100644 --- a/package.json +++ b/package.json @@ -278,6 +278,7 @@ "author": "jxxghp", "level": 2, "history": { + "v1.9.2": "适配馒头使用API下载种子", "v1.9.1": "支持自定义辅种的种子分类", "v1.9": "支持自定义辅种后标签,支持将站点名作为标签", "v1.8.2": "qBittorrent 支持跳过校验", From 4f9cd0b29b49138e78d7eba177456b8beafb01c3 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 8 Jul 2024 16:40:50 +0800 Subject: [PATCH 2/4] Update __init__.py --- plugins/iyuuautoseed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/iyuuautoseed/__init__.py b/plugins/iyuuautoseed/__init__.py index 5fd8f48..4cdbd49 100644 --- a/plugins/iyuuautoseed/__init__.py +++ b/plugins/iyuuautoseed/__init__.py @@ -34,7 +34,7 @@ class IYUUAutoSeed(_PluginBase): # 插件图标 plugin_icon = "IYUU.png" # 插件版本 - plugin_version = "1.9.1" + plugin_version = "1.9.2" # 插件作者 plugin_author = "jxxghp" # 作者主页 From 6b05b5b7bbfce9fd1436af22cc61fecdf3090019 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Mon, 8 Jul 2024 16:45:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix=20iyuu=E8=BE=85=E7=A7=8D=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=A6=92=E5=A4=B4api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/iyuuautoseed/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/iyuuautoseed/__init__.py b/plugins/iyuuautoseed/__init__.py index 4cdbd49..5d4dd80 100644 --- a/plugins/iyuuautoseed/__init__.py +++ b/plugins/iyuuautoseed/__init__.py @@ -1048,6 +1048,10 @@ class IYUUAutoSeed(_PluginBase): if not apikey: logger.error("m-team站点的apikey未配置") return None + + # 获取馒头 URL 并替换为api + api_url = re.sub(r'//[^/]+\.m-team', '//api.m-team', site.get('url')) + res = RequestUtils( headers={ 'Content-Type': 'application/json', @@ -1055,7 +1059,7 @@ class IYUUAutoSeed(_PluginBase): 'Accept': 'application/json, text/plain, */*', 'x-api-key': apikey } - ).post_res(f"{site.get('url')}api/torrent/genDlToken", params={ + ).post_res(f"{api_url}api/torrent/genDlToken", params={ 'id': tid }) if not res: From 7b79d6bfc219f186c9bc328eb75d5306ac4dff71 Mon Sep 17 00:00:00 2001 From: AisukaYuki Date: Tue, 9 Jul 2024 11:15:05 +0800 Subject: [PATCH 4/4] Update __init__.py --- plugins/iyuuautoseed/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/iyuuautoseed/__init__.py b/plugins/iyuuautoseed/__init__.py index 5d4dd80..b259390 100644 --- a/plugins/iyuuautoseed/__init__.py +++ b/plugins/iyuuautoseed/__init__.py @@ -1049,7 +1049,9 @@ class IYUUAutoSeed(_PluginBase): logger.error("m-team站点的apikey未配置") return None - # 获取馒头 URL 并替换为api + """ + 将mteam种子下载链接域名替换为使用API + """ api_url = re.sub(r'//[^/]+\.m-team', '//api.m-team', site.get('url')) res = RequestUtils(