Skip to content

Commit

Permalink
fix(hd4fans): seedingSize
Browse files Browse the repository at this point in the history
  • Loading branch information
wegood9 committed Mar 24, 2024
1 parent fce487f commit 1bb2a78
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resource/sites/pt.hd4fans.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,25 @@
"selector": "img.pro_50pctdown, .halfdown_bg, font.halfdown"
}
],
"selectors": {
"userSeedingTorrents": {
"merge": true,
"fields": {
"seeding": {
"selector": ["div b:first"],
"filters": ["query.text()"]
},
"seedingSize": {
"selector": "div div:first",
"filters": [
"query.text().match(/[0-9](.*?)B/g)",
"(query && query.length>0) ? query[0].trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
},
"searchEntryConfig": {
"fieldSelector": {
"progress": {
Expand Down

0 comments on commit 1bb2a78

Please sign in to comment.