Skip to content

Commit

Permalink
fix:修复时魔排序;feat:在NexusPHP模板中添加保种积分
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Dec 5, 2022
1 parent 8c3cdfd commit b768c2d
Show file tree
Hide file tree
Showing 33 changed files with 79 additions and 357 deletions.
1 change: 1 addition & 0 deletions resource/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"seeding": "Seeding",
"seedingSize": "Seeding size",
"bonus": "Bonus",
"seedingPoints": "Seeding Points",
"bonusPerHour": "Bonus per hour",
"joinTime": "Join time",
"lastUpdateTime": "Update at",
Expand Down
1 change: 1 addition & 0 deletions resource/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"seeding": "做种数",
"seedingSize": "做种体积",
"bonus": "魔力值/积分",
"seedingPoints": "做种积分",
"bonusPerHour": "时魔",
"joinTime": "入站时间",
"lastUpdateTime": "数据更新于",
Expand Down
7 changes: 7 additions & 0 deletions resource/schemas/NexusPHP/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@
"selector": ["td.rowhead:contains('魔力') + td", "td.rowhead:contains('Karma'):contains('Points') + td", "td.rowhead:contains('麦粒') + td", "td.rowfollow:contains('魔力值')", "td.rowhead:contains('bonus') + td"],
"filters": ["query.is(\":contains('魔力值:')\")?query.text().replace(/,/g,'').match(/魔力值.+?([\\d.]+)/)[1]:query.text().replace(/,/g,'')", "parseFloat(query)"]
},
"seedingPoints": {
"selector": ["td.rowhead:contains('做种积分') + td", "td.rowhead:contains('Seeding Points') + td", "td.rowhead:contains('做種積分') + td", "td.rowhead:contains('保种积分') + td", "td.rowfollow:contains('做种积分')", "td.rowfollow:contains('Seeding Points')", "td.rowfollow:contains('做種積分')"],
"filters": [
"query.text().replace(/,/g,'')",
"query.includes('做种积分') || query.includes('做種積分') || query.includes('Seeding Points') ? query.match(/(做种积分|做種積分|Seeding Points).+?[\\d.]+/g)[0] : query",
"query ? parseFloat(query.match(/[\\d.]+/)[0]) : null"]
},
"joinTime": {
"selector": ["td.rowhead:contains('加入日期')", "td.rowhead:contains('Join'):contains('date')"],
"filters": ["query.next().text().split(' (')[0]", "dateTime(query).isValid()?dateTime(query).valueOf():query"]
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/1ptba.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
"tags": ["影视", "综合"],
"host": "1ptba.com",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('Seed points') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
16 changes: 0 additions & 16 deletions resource/sites/audiences.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
"schema": "NexusPHP",
"host": "audiences.me",
"collaborator": "Audiences",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": [
"query.text().match(/(.*?)本月:/g)",
"(query && query.length>0) ? query[0].replace('(本月:', '').trim() : 0",
"(query != 0) ? parseFloat(query) : 0"
]
}
}
}
},
"searchEntryConfig": {
"fieldSelector": {
"progress": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/carpt.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
"host": "carpt.net",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
12 changes: 0 additions & 12 deletions resource/sites/chdbits.co/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,6 @@
"name": "50%",
"selector": "img.pro_50pctdown"
}],
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('传输') + td", "td.rowhead:contains('傳送') + td", "td.rowhead:contains('Transfers') + td", "td.rowfollow:contains('分享率')"],
"filters": ["query.text().replace(/,/g,'').match(/(做种积分).+?([\\d.]+)/)", "(query && query.length==3)? query[2]:0", "(query != 0) ? parseFloat(query) : 0"]
}
}
}
},
"searchEntryConfig": {
"merge": true,
"fieldSelector": {
Expand Down
50 changes: 20 additions & 30 deletions resource/sites/gainbound.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,27 @@
"schema": "NexusPHP",
"host": "gainbound.net",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"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) ? query.sizeToNumber() : 0"
"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) ? query.sizeToNumber() : 0"
]
}
}
}
},
"patterns": {
"torrentLinks": ["*://*/*"]
Expand Down
14 changes: 1 addition & 13 deletions resource/sites/hdatmos.club/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,5 @@
"tags": ["影视", "综合"],
"url": "https://hdatmos.club",
"host": "hdatmos.club",
"collaborator": "luoyefe",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
}
}
"collaborator": "luoyefe"
}
16 changes: 1 addition & 15 deletions resource/sites/hddolby.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,7 @@
]
}
],
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('保种积分') + td"],
"filters": [
"query.text().match(/(.*?)本月:/g)",
"(query && query.length>0) ? query[0].replace('(本月:', '').trim() : 0",
"(query != 0) ? parseFloat(query) : 0"
]
}
}
},
"selectors": {
"/details.php": {
"merge": true,
"fields": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/hdfans.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@
]
}
}
},
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
}
},
"searchEntryConfig": {
Expand Down
14 changes: 0 additions & 14 deletions resource/sites/hdhome.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,20 +381,6 @@
}
],
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": [
"query.text().match(/(.*?)本月:/g)",
"(query && query.length>0) ? query[0].replace('(本月:', '').trim() : 0",
"(query != 0) ? parseFloat(query) : 0"
]
}
}
},
"/details.php": {
"merge": true,
"fields": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/hdmayi.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
"host": "hdmayi.com",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
50 changes: 20 additions & 30 deletions resource/sites/hdpt.xyz/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,27 @@
"host": "hdpt.xyz",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
"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) ? query.sizeToNumber() : 0"
]
}
}
}
},
"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) ? query.sizeToNumber() : 0"
]
}
}
}
}
},
"searchEntry": [{
"name": "全站",
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/hdtime.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
"schema": "NexusPHP",
"host": "hdtime.org",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/hdvideo.one/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
"host": "hdvideo.one",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/hhanclub.top/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
"host": "hhanclub.top",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
10 changes: 0 additions & 10 deletions resource/sites/ihdbits.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@
"host": "ihdbits.me",
"collaborator": "koal",
"selectors": {
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$",
"merge": true,
"fields": {
"bonus2": {
"selector": ["td.rowhead:contains('做种积分') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
Expand Down
Loading

0 comments on commit b768c2d

Please sign in to comment.