From b63fb316fdd08e451b1ffc9dafdb2d9d2502726a Mon Sep 17 00:00:00 2001 From: ted423 Date: Tue, 22 Feb 2022 12:54:36 +0800 Subject: [PATCH] =?UTF-8?q?UNIT3D=20=E6=A8=A1=E6=9D=BF=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=8Cblu=E4=BD=9C=E4=B8=BA=E9=BB=98=E8=AE=A4=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=8D=95=E7=8B=AC=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=EF=BC=8C=E9=83=A8=E5=88=86=E4=BF=AE=E5=A4=8D=EF=BC=8C?= =?UTF-8?q?ACM=E4=B8=BA=E5=B0=B1=E6=A8=A1=E6=9D=BF=EF=BC=8C=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=8D=95=E7=8B=AC=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/ronggang/PT-Plugin-Plus/issues/831 相关 https://github.com/ronggang/PT-Plugin-Plus/issues/979 --- resource/schemas/UNIT3D/config.json | 8 +++- .../UNIT3D}/userTorrents.js | 0 resource/sites/blutopia.xyz/config.json | 40 +------------------ 3 files changed, 7 insertions(+), 41 deletions(-) rename resource/{sites/blutopia.xyz => schemas/UNIT3D}/userTorrents.js (100%) diff --git a/resource/schemas/UNIT3D/config.json b/resource/schemas/UNIT3D/config.json index 2da2b6b78..afa68b81a 100644 --- a/resource/schemas/UNIT3D/config.json +++ b/resource/schemas/UNIT3D/config.json @@ -9,10 +9,14 @@ "name": "种子列表", "pages": ["^/torrents$"], "scripts": ["/schemas/NexusPHP/common.js", "torrents.js"] + }, { + "name": "个人种子列表页面", + "pages": ["^/users/.*?/(uploads|downloads|seeds|active|torrents|unsatisfieds)"], + "scripts": ["/schemas/NexusPHP/common.js", "userTorrents.js"] }], "searchEntryConfig": { - "page": "/torrents/filter", - "queryString": "search=$key$", + "page": "/torrents", + "queryString": "perPage=100&name=$key$", "area": [{ "name": "IMDB", "keyAutoMatch": "^(tt\\d+)$", diff --git a/resource/sites/blutopia.xyz/userTorrents.js b/resource/schemas/UNIT3D/userTorrents.js similarity index 100% rename from resource/sites/blutopia.xyz/userTorrents.js rename to resource/schemas/UNIT3D/userTorrents.js diff --git a/resource/sites/blutopia.xyz/config.json b/resource/sites/blutopia.xyz/config.json index 19f9e6036..6f8a5cd90 100644 --- a/resource/sites/blutopia.xyz/config.json +++ b/resource/sites/blutopia.xyz/config.json @@ -6,43 +6,5 @@ "icon": "https://blutopia.xyz/favicon.ico", "tags": ["影视", "综合"], "host": "blutopia.xyz", - "collaborator": ["bimzcy", "lengmianxia"], - "plugins": [{ - "name": "个人种子列表页面", - "pages": ["^/users/.*?/(uploads|downloads|seeds|active|torrents|unsatisfieds)"], - "scripts": ["/schemas/NexusPHP/common.js", "userTorrents.js"] - }], - "searchEntryConfig": { - "page": "/torrents", - "queryString": "perPage=100&name=$key$", - "area": [{ - "name": "IMDB", - "keyAutoMatch": "^(tt\\d+)$", - "queryString": "perPage=100&imdbId=$key$", - "replaceKey": [ - "tt", "" - ] - }], - "fieldSelector": { - "progress": { - "selector": ["button.btn.btn-success.btn-circle", "button.btn.btn-warning.btn-circle, button.btn.btn-info.btn-circle", ""], - "switchFilters": [ - ["100"], - ["0"], - ["null"] - ] - }, - "status": { - "selector": ["button.btn.btn-success.btn-circle", "button.btn.btn-warning.btn-circle", "button.btn.btn-info.btn-circle"], - "switchFilters": [ - ["2"], - ["1"], - ["3"] - ] - } - }, - "resultType": "html", - "parseScriptFile": "/schemas/UNIT3D/getSearchResult.js", - "resultSelector": "div.table-responsive > table:first" - } + "collaborator": ["bimzcy", "lengmianxia"] }