Skip to content

Commit

Permalink
fix: user uploads for PTC, Azusa and RL
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Aug 1, 2023
1 parent cfe072b commit 55ec5eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resource/sites/azusa.wiki/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"fields": {
"uploads": {
"selector": ["b:first"],
"filters": ["query.text().trim()"]
"filters": ["query ? parseInt(query.text().trim().replace(/,/g,'')) : 0"]
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions resource/sites/leaves.red/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@
}
}
},
"userUploadedTorrents": {
"prerequisites": "!user.uploads",
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=uploaded",
"fields": {
"uploads": {
"selector": ["b:first"],
"filters": ["query ? parseInt(query.text().trim().replace(/,/g,'')) : 0"]
}
}
},
"bonusExtendInfo": {
"prerequisites": "!user.bonusPerHour",
"page": "/mybonus.php",
Expand Down
6 changes: 3 additions & 3 deletions resource/sites/pterclub.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@
}
}
},
"userSeedingTorrents": {
"userUploadedTorrents": {
"prerequisites": "!user.uploads",
"page": "/torrents.php?incldead=1&check=checked&search=$user.name$&search_area=3",
"fields": {
"uploads": {
"selector": ["tr:not(:eq(0))"],
"filters": ["query.find('td.rowfollow:eq(1)').length"]
"selector": ["p.np-pager:first b:last"],
"filters": ["query.text().replace(/,/g,'').split('-')", "(query && query.length > 1) ? parseInt(query[1]) : 0"]
}
}
}
Expand Down

0 comments on commit 55ec5eb

Please sign in to comment.