Skip to content

Commit

Permalink
fix(ant): download data
Browse files Browse the repository at this point in the history
  • Loading branch information
Bright-W authored and fzlins committed Nov 19, 2023
1 parent d0cb4ad commit 215aa01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resource/sites/anthelion.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}],
"selectors": {
"userBaseInfo": {
"page": "index.php",
"page": "/index.php",
"fields": {
"id": {
"selector": ["#nav_user a.username"],
Expand All @@ -35,7 +35,7 @@
}
},
"userExtendInfo": {
"page": "user.php?id=$user.id$",
"page": "/user.php?id=$user.id$",
"fields": {
"uploaded": {
"selector": ["li.tooltip:contains('Uploaded: ')"],
Expand All @@ -46,8 +46,8 @@
"filters": ["query.text().match(/\\d+/g)[0]"]
},
"downloaded": {
"selector": ["li.tooltip:contains('Downloaded: ')"],
"filters": ["query.eq(0).text().replace(/Downloaded:/g,'').replace(/,/g,'').sizeToNumber()"]
"selector": ["li.tooltip:contains('Downloaded: ')"],
"filters": ["query.eq(0).text().replace(/Downloaded: /g,'').replace(/,/g,'').sizeToNumber()"]
},
"ratio": {
"selector": ["li.tooltip:contains('Ratio: ') span"],
Expand Down

0 comments on commit 215aa01

Please sign in to comment.