-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
29 changed files
with
979 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.