Skip to content

Commit

Permalink
Merge pull request #1089 from ChuanfengZhang/fix-hdtime
Browse files Browse the repository at this point in the history
fix: HDTime 做种体积显示为 0
  • Loading branch information
ted423 authored Jul 28, 2022
2 parents f772a58 + 3441289 commit 2ff576a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions resource/sites/hdtime.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
],
"schema": "NexusPHP",
"host": "hdtime.org",
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)类型/g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('类型', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
},
"searchEntryConfig": {
"fieldSelector": {
"progress": {
Expand Down

0 comments on commit 2ff576a

Please sign in to comment.