From 4c55d433e4eb79d1c5c1d77adc366366ec7fcee4 Mon Sep 17 00:00:00 2001 From: yum <50840944+ityum@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:07:36 +0800 Subject: [PATCH] fix: uploads of HUDBT (#1619) --- 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": [{