From 0e7393c862504176693b8434ef7cac5a93af054b Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 10 Oct 2023 18:31:05 +0800 Subject: [PATCH] fix: uploads of HUDBT --- resource/sites/hudbt.hust.edu.cn/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resource/sites/hudbt.hust.edu.cn/config.json b/resource/sites/hudbt.hust.edu.cn/config.json index eb05202d3..064e93f1d 100644 --- a/resource/sites/hudbt.hust.edu.cn/config.json +++ b/resource/sites/hudbt.hust.edu.cn/config.json @@ -83,6 +83,16 @@ "filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.torrent:eq(0) a').attr('href')] = jQuery(this).find('td:eq(2)').text(); }); _self.getTotalSize(Object.values(l));"] } } + }, + "userUploadedTorrents": { + "prerequisites": "!user.uploads", + "page": "/getusertorrentlistajax.php?userid=$user.id$&type=uploaded", + "fields": { + "uploads": { + "selector": ["tr:not(:eq(0))"], + "filters": ["let l=new Set(); query.each(function() { l.add(jQuery(this).find('td.torrent:eq(0) a').attr('href'));}); l.size;"] + } + } } }, "searchEntry": [{