Skip to content

Commit

Permalink
feat(GazelleJSONAPI): 音乐站的一些调整
Browse files Browse the repository at this point in the history
  • Loading branch information
ted423 committed Sep 7, 2022
1 parent 8a4dac4 commit 82af921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 0 additions & 13 deletions resource/sites/orpheus.network/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"userSeedingTorrents": {
"page": "/bonus.php?action=bprates",
"fields": {
"seeding": {
"selector": ["div#content > table > tbody > tr > td:eq(0)"],
"filters": ["parseInt(query.text())"]
},
"seedingSize": {
"selector": ["div#content > table > tbody > tr > td:eq(1)"],
"filters": ["query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>=2)?(query[1]).sizeToNumber():0"]
Expand All @@ -28,15 +24,6 @@
"filters": ["query.text().replace(/,/g,'')"]
}
}
},
"userExtendInfo": {
"page": "/user.php?id=$user.id$",
"fields": {
"joinTime": {
"selector": ["div:contains('Statistics') + ul.stats > li:contains('Joined:') > span"],
"filters": ["query.attr('title')||query.text()", "dateTime(query).isValid()?dateTime(query).valueOf():query"]
}
}
}
},
"supportedFeatures": {
Expand Down
6 changes: 4 additions & 2 deletions resource/sites/redacted.ch/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@
],
"selectors": {
"userSeedingTorrents": {
"merge": true,
"page": "/ajax.php?action=community_stats&userid=$user.id$",
"dataType": "json",
"fields": {
"seedingSize": {
"selector": ["response.seedingsize"],
"filters": ["query.replace(/,/g,'').sizeToNumber()"]
}
},
"bonus": {
"value":"N/A"
}
}
}
},
Expand Down

0 comments on commit 82af921

Please sign in to comment.