Skip to content

Commit

Permalink
fix(HDC): uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Aug 11, 2023
1 parent 41f9a3a commit f5d8893
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions resource/sites/hdchina.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,23 @@
}
}
},
"userUploadedTorrents": {
"prerequisites": "!user.uploads",
"page": "/ajax_getusertorrentlist.php",
"dataType": "json",
"requestMethod": "POST",
"requestData": {
"userid": "$user.id$",
"type": "uploaded",
"csrf": "$user.xCsrf$"
},
"fields": {
"uploads": {
"selector": ["message"],
"filters": ["jQuery('<div/>').html(query).find('b:first').text().trim().replace(/,/g,'') ? parseInt(query) : 0"]
}
}
},
"/details.php": {
"merge": true,
"fields": {
Expand Down

0 comments on commit f5d8893

Please sign in to comment.