Skip to content

Commit

Permalink
fix: 修复 jpop 无法正常获取数据的Bug
Browse files Browse the repository at this point in the history
closes #173
  • Loading branch information
ronggang committed Jun 14, 2019
1 parent ff5db3f commit 1a7a44b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resource/schemas/Gazelle/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
"fields": {
"uploaded": {
"selector": "div:contains('Stats') + ul.stats > li:contains('Uploaded')",
"filters": ["query.text().match(/Uploaded.+?([\\d.]+ ?[TGMK]?i?B)/)", "(query && query.length>=2)?(query[1]).sizeToNumber():0"]
"filters": ["query.text().replace(/,/g,'').match(/Uploaded.+?([\\d.]+ ?[TGMK]?i?B)/)", "(query && query.length>=2)?(query[1]).sizeToNumber():0"]
},
"downloaded": {
"selector": "div:contains('Stats') + ul.stats > li:contains('Downloaded')",
"filters": ["query.text().match(/Downloaded.+?([\\d.]+ ?[TGMK]?i?B)/)", "(query && query.length>=2)?(query[1]).sizeToNumber():0"]
"filters": ["query.text().replace(/,/g,'').match(/Downloaded.+?([\\d.]+ ?[TGMK]?i?B)/)", "(query && query.length>=2)?(query[1]).sizeToNumber():0"]
},
"ratio": {
"selector": "div:contains('Stats') + ul.stats > li:contains('Ratio:')",
"filters": ["query.text().match(/Ratio.+?([\\d.]+)/)", "(query && query.length>=2)?query[1]:0"]
"filters": ["query.text().replace(/,/g,'').match(/Ratio.+?([\\d.]+)/)", "(query && query.length>=2)?query[1]:0"]
},
"levelName": {
"selector": "div:contains('Personal') + ul.stats > li:contains('Class:')",
Expand Down

0 comments on commit 1a7a44b

Please sign in to comment.