-
Notifications
You must be signed in to change notification settings - Fork 926
修复 UB 无法获取 subtitle 的问题 #2229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
修复 UB 无法获取 subtitle 的问题 #2229
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
719362a
feat(site): 适配站点 下水道
vanchKong 9f33669
Merge branch 'pt-plugins:dev' into dev
vanchKong 5ca6a6c
Merge branch 'pt-plugins:dev' into dev
vanchKong 80a97bf
feat(site): 适配站点 PlayLet
b99082b
fix(style): 代码风格
f347be9
Merge branch 'pt-plugins:dev' into dev
vanchKong 7f719eb
fix(site): 修复UB subtitle 选择器
117bc33
Merge branch 'dev' of https://github.com/vanchKong/PT-Plugin-Plus int…
eba4a09
fix(style): 代码风格
80549ad
fix(site): 修改 filters 匹配条件
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,130 +1,126 @@ | ||
{ | ||
"name": "UBits", | ||
"timezoneOffset": "+0800", | ||
"description": "ubits.club", | ||
"url": "https://ubits.club/", | ||
"icon": "https://ubits.club/favicon.ico", | ||
"tags": ["影视"], | ||
"schema": "NexusPHP", | ||
"host": "ubits.club", | ||
"collaborator": ["IITII"], | ||
"levelRequirements": [ | ||
{ | ||
"level": 1, | ||
"name": "Power User", | ||
"interval": "5", | ||
"downloaded": "200GB", | ||
"seedingPoints": "50000", | ||
"ratio": "2", | ||
"privilege": "可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以发送邀请; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\");可以删除自己上传的字幕。" | ||
}, | ||
{ | ||
"level": 2, | ||
"name": "Elite User", | ||
"interval": "10", | ||
"downloaded": "500GB", | ||
"seedingPoints": "100000", | ||
"ratio": "3", | ||
"privilege": "Elite User及以上用户封存账号后不会被删除。" | ||
}, | ||
{ | ||
"level": 3, | ||
"name": "Crazy User", | ||
"interval": "15", | ||
"downloaded": "800GB", | ||
"seedingPoints": "200000", | ||
"ratio": "4", | ||
"privilege": "得到1个邀请名额;可以在做种/下载/发布的时候选择匿名模式。" | ||
}, | ||
{ | ||
"level": 4, | ||
"name": "Insane User", | ||
"seedingPoints": "500000", | ||
"interval": "20", | ||
"downloaded": "1TB", | ||
"ratio": "5", | ||
"privilege": "得到1个邀请名额;可以查看普通日志。" | ||
}, | ||
{ | ||
"level": 5, | ||
"name": "Veteran User", | ||
"interval": "25", | ||
"downloaded": "1.5TB", | ||
"seedingPoints": "750000", | ||
"ratio": "6", | ||
"privilege": "得到1个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。" | ||
}, | ||
{ | ||
"level": 6, | ||
"name": "Extreme User", | ||
"interval": "30", | ||
"seedingPoints": "1500000", | ||
"downloaded": "2TB", | ||
"ratio": "7", | ||
"privilege": "得到2个邀请名额;可以更新过期的外部信息;可以查看Extreme User论坛。" | ||
"name": "UBits", | ||
"timezoneOffset": "+0800", | ||
"description": "ubits.club", | ||
"url": "https://ubits.club/", | ||
"icon": "https://ubits.club/favicon.ico", | ||
"tags": ["影视"], | ||
"schema": "NexusPHP", | ||
"host": "ubits.club", | ||
"collaborator": ["IITII", "vanchkong"], | ||
"levelRequirements": [ | ||
{ | ||
"level": 1, | ||
"name": "Power User", | ||
"interval": "5", | ||
"downloaded": "200GB", | ||
"seedingPoints": "50000", | ||
"ratio": "2", | ||
"privilege": "可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以发送邀请; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\");可以删除自己上传的字幕。" | ||
}, | ||
{ | ||
"level": 2, | ||
"name": "Elite User", | ||
"interval": "10", | ||
"downloaded": "500GB", | ||
"seedingPoints": "100000", | ||
"ratio": "3", | ||
"privilege": "Elite User及以上用户封存账号后不会被删除。" | ||
}, | ||
{ | ||
"level": 3, | ||
"name": "Crazy User", | ||
"interval": "15", | ||
"downloaded": "800GB", | ||
"seedingPoints": "200000", | ||
"ratio": "4", | ||
"privilege": "得到1个邀请名额;可以在做种/下载/发布的时候选择匿名模式。" | ||
}, | ||
{ | ||
"level": 4, | ||
"name": "Insane User", | ||
"seedingPoints": "500000", | ||
"interval": "20", | ||
"downloaded": "1TB", | ||
"ratio": "5", | ||
"privilege": "得到1个邀请名额;可以查看普通日志。" | ||
}, | ||
{ | ||
"level": 5, | ||
"name": "Veteran User", | ||
"interval": "25", | ||
"downloaded": "1.5TB", | ||
"seedingPoints": "750000", | ||
"ratio": "6", | ||
"privilege": "得到1个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。" | ||
}, | ||
{ | ||
"level": 6, | ||
"name": "Extreme User", | ||
"interval": "30", | ||
"seedingPoints": "1500000", | ||
"downloaded": "2TB", | ||
"ratio": "7", | ||
"privilege": "得到2个邀请名额;可以更新过期的外部信息;可以查看Extreme User论坛。" | ||
}, | ||
{ | ||
"level": 7, | ||
"name": "Ultimate User", | ||
"interval": "40", | ||
"seedingPoints": "2000000", | ||
"downloaded": "3TB", | ||
"ratio": "8", | ||
"privilege": "得到3个邀请名额。" | ||
}, | ||
{ | ||
"level": 8, | ||
"name": "Nexus Master", | ||
"seedingPoints": "3000000", | ||
"interval": "60", | ||
"downloaded": "4TB", | ||
"ratio": "10", | ||
"privilege": "得到4个邀请名额。" | ||
} | ||
], | ||
"searchEntry": [ | ||
{ | ||
"name": "全站", | ||
"enabled": true | ||
} | ||
], | ||
"searchEntryConfig": { | ||
"fieldSelector": { | ||
"subTitle": { | ||
"selector": ["> td.rowfollow:eq(1) td.embedded:eq(0)"], | ||
"filters": ["query.html().match(/<br>\\s*([\\s\\S]*?)\\s*<br>/)", "query[1]"] | ||
}, | ||
{ | ||
"level": 7, | ||
"name": "Ultimate User", | ||
"interval": "40", | ||
"seedingPoints": "2000000", | ||
"downloaded": "3TB", | ||
"ratio": "8", | ||
"privilege": "得到3个邀请名额。" | ||
"progress": { | ||
"selector": ["> td.rowfollow:eq(1) td.embedded:eq(0) > div:last"], | ||
"filters": ["query ? parseFloat(query.attr('title').match(/[\\d.]+/)) : null"] | ||
}, | ||
{ | ||
"level": 8, | ||
"name": "Nexus Master", | ||
"seedingPoints": "3000000", | ||
"interval": "60", | ||
"downloaded": "4TB", | ||
"ratio": "10", | ||
"privilege": "得到4个邀请名额。" | ||
} | ||
], | ||
"searchEntry": [ | ||
{ | ||
"name": "全站", | ||
"enabled": true | ||
"status": { | ||
"selector": ["> td.rowfollow:eq(1) td.embedded:eq(0) > div:last"], | ||
"filters": ["query ? query.attr('title') : ''", "query.indexOf('seeding') != -1 ? 2 : query.indexOf('leeching') != -1 ? 1 : query.indexOf('100%') != -1 ? 255 : 3"] | ||
} | ||
], | ||
"searchEntryConfig": { | ||
"fieldSelector": { | ||
"progress": { | ||
"selector": ["> td.rowfollow:eq(1) td.embedded:eq(0) > div:last"], | ||
"filters": ["query ? parseFloat(query.attr('title').match(/[\\d.]+/)) : null"] | ||
} | ||
}, | ||
"selectors": { | ||
"userSeedingTorrents": { | ||
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding", | ||
"fields": { | ||
"seeding": { | ||
"selector": ["b:first"], | ||
"filters": ["query.text()"] | ||
}, | ||
"status": { | ||
"selector": ["> td.rowfollow:eq(1) td.embedded:eq(0) > div:last"], | ||
"seedingSize": { | ||
"selector": "", | ||
"filters": [ | ||
"query ? query.attr('title') : ''", | ||
"query.indexOf('seeding') != -1 ? 2 : query.indexOf('leeching') != -1 ? 1 : query.indexOf('100%') != -1 ? 255 : 3" | ||
"query.text().match(/总大小:(.*?)上一页/g)", | ||
"(query && query.length>0) ? query[0].replace('总大小:', '').replace('<< 上一页', '').trim() : 0", | ||
"(query != 0) ? query.sizeToNumber() : 0" | ||
] | ||
} | ||
} | ||
}, | ||
"selectors": { | ||
"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" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.