From 344128911afea018faf3076e2ab8a6a6b75137f8 Mon Sep 17 00:00:00 2001 From: chuanfeng Date: Fri, 22 Jul 2022 22:48:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20HDTime=20=E5=81=9A=E7=A7=8D=E4=BD=93?= =?UTF-8?q?=E7=A7=AF=E6=98=BE=E7=A4=BA=E4=B8=BA=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sites/hdtime.org/config.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/resource/sites/hdtime.org/config.json b/resource/sites/hdtime.org/config.json index 589d67ab6..dab0ece74 100644 --- a/resource/sites/hdtime.org/config.json +++ b/resource/sites/hdtime.org/config.json @@ -10,6 +10,21 @@ ], "schema": "NexusPHP", "host": "hdtime.org", + "selectors": { + "userSeedingTorrents": { + "page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding", + "fields": { + "seedingSize": { + "selector": "", + "filters": [ + "query.text().match(/总大小:(.*?)类型/g)", + "(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('类型', '').trim() : 0", + "(query != 0) ? query.sizeToNumber() : 0" + ] + } + } + } + }, "searchEntryConfig": { "fieldSelector": { "progress": {