Skip to content

Commit

Permalink
修改记录:
Browse files Browse the repository at this point in the history
1. Size转换接口问题
之前一些size的格式转换接口使用的是query.sizeToNumber(),
发现最新版本的hdfan和1pt使用了新的接口_self.getTotalSize([query])
但是为了统一所以这两个站点的配置改回了原有接口query.sizeToNumber(),

2.站点保种体积修改
主要是由于近期很多站点升级了新版本NexusPHP导致的。
这个地方我也不知道怎么修改,是要修改NexusPHP的基础配置还是傻瓜的对使用了新版本的站点配置文件修改。这个事情的考虑已经超出我的能力范围了,所以我选择了比较基本的对新版本站点的重复性配置。

现有jquery的选择方式是基于字符串的过滤,所以现在的一些解析是以站点的默认语言版本为基础的。所以如果使用了非站点默认语言文件可能会存在问题。望知晓。

3. 保种积分
关于保种积分,是因为个人原因,有强烈的需要知道升级信息的需求,而增加保种积分信息的获取并不会额外请求数据,在个人页就可以获取到,所以增加了获取的解析以及显示。如果将来增加升级等级信息的时候是可以使用的。如果不喜可以忽略。

4.海豹的时间格式问题修改
之前修改了,提交了issue,但是因为个人不会用git,所以没有提交,只是在issue描写了修改的方法。好像看到最新版本里面没有相应修改,一并提交,如果不喜可以忽略。

koal 2022.12.4
  • Loading branch information
pxwang85 committed Dec 4, 2022
1 parent 3141fa8 commit 522d241
Show file tree
Hide file tree
Showing 29 changed files with 979 additions and 9 deletions.
18 changes: 14 additions & 4 deletions resource/sites/1ptba.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
"schema": "NexusPHP",
"url": "https://1ptba.com/",
"description": "壹PT吧,PT下载,教育视频,课件资源,发布教育类,学习类,纪录片等资源",
"icon": "https://1ptba.com/favicon.ico",
"icon": "https://1ptba.com/kuai360/favicon.ico",
"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 All @@ -17,9 +27,9 @@
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)</g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0",
"(query != 0) ? _self.getTotalSize([query]) : 0"
"query.text().match(/总大小:(.*?)上一页/g)",
"(query && query.length>0) ? query[0].replace('总大小:', '').replace('<< 上一页', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
Expand Down
16 changes: 16 additions & 0 deletions resource/sites/audiences.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
"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
44 changes: 44 additions & 0 deletions resource/sites/carpt.net/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "CarPT",
"timezoneOffset": "+0800",
"description": "CarPT",
"url": "https://carpt.net/",
"icon": "https://carpt.net/favicon.ico",
"tags": [],
"schema": "NexusPHP",
"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": {
"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"
]
}
}
}
}
}
12 changes: 12 additions & 0 deletions resource/sites/chdbits.co/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@
"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
33 changes: 33 additions & 0 deletions resource/sites/gainbound.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@
"tags": ["高清","电影","纪录片"],
"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"
]
}
}
}
},
"patterns": {
"torrentLinks": ["*://*/*"]
},
Expand Down
14 changes: 13 additions & 1 deletion resource/sites/hdatmos.club/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
"tags": ["影视", "综合"],
"url": "https://hdatmos.club",
"host": "hdatmos.club",
"collaborator": "luoyefe"
"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)"]
}
}
}
}
}
16 changes: 15 additions & 1 deletion resource/sites/hddolby.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,21 @@
]
}
],
"selectors": {
"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: 10 additions & 0 deletions resource/sites/hdfans.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
]
}
}
},
"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: 14 additions & 0 deletions resource/sites/hdhome.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,20 @@
}
],
"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
40 changes: 40 additions & 0 deletions resource/sites/hdmayi.com/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "HDmayi",
"timezoneOffset": "+0800",
"description": "HDmayi",
"url": "http://hdmayi.com/",
"icon": "http://hdmayi.com/favicon.ico",
"tags": [],
"schema": "NexusPHP",
"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": {
"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"
]
}
}
}
}
}
Loading

0 comments on commit 522d241

Please sign in to comment.