Skip to content

Commit

Permalink
fix: uploads of HUDBT (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
ityum authored Oct 10, 2023
1 parent 545218d commit 4c55d43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resource/sites/hudbt.hust.edu.cn/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [{
Expand Down

0 comments on commit 4c55d43

Please sign in to comment.