Skip to content

Commit

Permalink
fix: seeding and seedingSize of HUDBT
Browse files Browse the repository at this point in the history
  • Loading branch information
ityum committed Oct 8, 2023
1 parent 136d729 commit 529be77
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion resource/sites/hudbt.hust.edu.cn/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"schema": "NexusPHP",
"host": "hudbt.hust.edu.cn",
"collaborator": ["Rhilip", "枕头啊枕头","Yincircle"],
"collaborator": ["Rhilip", "枕头啊枕头","Yincircle","yum"],
"levelRequirements": [{
"level": "1",
"name": "易形(Power User)",
Expand Down Expand Up @@ -69,6 +69,22 @@
"ratio": "4.55",
"privilege": ""
}],
"selectors": {
"userSeedingTorrents": {
"prerequisites": "!user.seeding",
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": ["tr:not(:eq(0))"],
"filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.torrent:eq(0) a').attr('href')] = jQuery(this).find('td:eq(2)').text(); }); Object.keys(l).length;"]
},
"seedingSize": {
"selector": ["tr:not(:eq(0))"],
"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));"]
}
}
}
},
"searchEntry": [{
"name": "全站",
"enabled": true
Expand Down

0 comments on commit 529be77

Please sign in to comment.