Skip to content

Commit

Permalink
fix: DiscFan seedingSize
Browse files Browse the repository at this point in the history
  • Loading branch information
xlongshu committed Aug 2, 2023
1 parent 5ef5c29 commit 6578444
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resource/sites/discfan.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,24 @@
}],
"supportedFeatures": {
"imdbSearch": false
},
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": ["div b:first"],
"filters": ["query.text()"]
},
"seedingSize": {
"selector": "div div:first",
"filters": [
"query.text().match(/總大小:(.*?)B/g)",
"(query && query.length>0) ? query[0].replace('總大小:', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
}
}

0 comments on commit 6578444

Please sign in to comment.