Skip to content

Commit

Permalink
fix: 观众魔力更名为票根;修正红叶的保种数、保种和时魔数据 (#1416)
Browse files Browse the repository at this point in the history
* feat:新增红叶适配

* fix: 观众魔力更名为票根,红叶获取正确的保种、时魔
  • Loading branch information
CosmoGao committed May 9, 2023
1 parent 7d821a0 commit 01ceed1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
13 changes: 12 additions & 1 deletion resource/sites/audiences.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,16 @@
"name": "全部",
"enabled": true
}
]
],
"selectors":{
"userExtendInfo": {
"merge": true,
"fields": {
"bonus": {
"selector": ["td.rowhead:contains('票根') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
}
}
}
31 changes: 30 additions & 1 deletion resource/sites/leaves.red/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,34 @@
"name": "有声",
"enabled": true
}
]
],
"selectors": {
"merge": true,
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": ["b:first"],
"filters": ["query.text()"]
},
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)</g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0",
"(query != 0) ? _self.getTotalSize([query]) : 0"
]
}
}
},
"bonusExtendInfo": {
"prerequisites": "!user.bonusPerHour",
"page": "/mybonus.php",
"fields": {
"bonusPerHour": {
"selector": ["#outer td[rowspan='3']"]
}
}
}
}
}

0 comments on commit 01ceed1

Please sign in to comment.