Skip to content

Commit

Permalink
fix(pig): messageCount
Browse files Browse the repository at this point in the history
+ 适配站点,新增一个 selector
  • Loading branch information
hui-shao authored and fzlins committed Feb 21, 2024
1 parent c2cad18 commit cf7c3be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resource/sites/piggo.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@
}],
"collaborator": "koal",
"selectors": {
"userBaseInfo": {
"merge": true,
"fields": {
"messageCount": {
"selector": ["div[id^='messages']"],
"filters": ["parseInt(query.text().match(/(\\d+)/))"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down

0 comments on commit cf7c3be

Please sign in to comment.