diff --git a/resource/sites/cspt.top/config.json b/resource/sites/cspt.top/config.json index 3bb31f511..cddf0d2d5 100644 --- a/resource/sites/cspt.top/config.json +++ b/resource/sites/cspt.top/config.json @@ -1,177 +1,209 @@ { - "name": "财神", - "description": "财神到,八方来财!", - "icon": "https://cspt.top/logo-clear.png", - "url": "https://cspt.top/", - "tags": [ - "综合", - "影视" - ], - "schema": "NexusPHP", - "host": "cspt.top", - "levelRequirements": [ - { - "level": 1, - "name": "Power User", - "interval": "4", - "downloaded": "50GB", - "ratio": "1.05", - "seedingPoints": "40000", - "privilege": "得到一个邀请名额;可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以发送邀请; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\"); 可以删除自己上传的字幕。" - }, - { - "level": 2, - "name": "Elite User", - "interval": "8", - "downloaded": "120GB", - "ratio": "1.55", - "seedingPoints": "80000", - "privilege": "Elite User及以上用户封存账号后不会被删除。" - }, - { - "level": 3, - "name": "Crazy User", - "interval": "15", - "downloaded": "300GB", - "ratio": "2.05", - "seedingPoints": "150000", - "privilege": "得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。" - }, - { - "level": 4, - "name": "Insane User", - "interval": "25", - "downloaded": "500GB", - "ratio": "2.55", - "seedingPoints": "250000", - "privilege": "可以查看普通日志。" - }, - { - "level": 5, - "name": "Veteran User", - "interval": "40", - "downloaded": "750GB", - "ratio": "3.05", - "seedingPoints": "400000", - "privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。" - }, - { - "level": 6, - "name": "Extreme User", - "interval": "60", - "downloaded": "1TB", - "ratio": "3.55", - "seedingPoints": "600000", - "privilege": "可以更新过期的外部信息;可以查看Extreme User论坛。" - }, - { - "level": 7, - "name": "Ultimate User", - "interval": "80", - "downloaded": "1.5TB", - "ratio": "4.05", - "seedingPoints": "800000", - "privilege": "得到五个邀请名额。" - }, - { - "level": 8, - "name": "Nexus Master", - "interval": "100", - "downloaded": "3TB", - "ratio": "4.55", - "seedingPoints": "1000000", - "privilege": "得到十个邀请名额。" - } - ], - "collaborator": [ - "Exception" - ], - "categories": [ - { - "entry": "torrents.php", - "result": "&cat$id$=1", - "category": [ - { - "id": 408, - "name": "HQ音乐" - }, - { - "id": 409, - "name": "其它" - }, - { - "id": 407, - "name": "体育" - }, - { - "id": 406, - "name": "MV" - }, - { - "id": 403, - "name": "综艺" - }, - { - "id": 402, - "name": "电视剧" - }, - { - "id": 405, - "name": "动漫" - }, - { - "id": 404, - "name": "纪录片" - }, - { - "id": 401, - "name": "电影" - } - ] - } - ], - "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" - ] - } - } - } + "name": "财神", + "description": "财神到,八方来财!", + "icon": "https://cspt.top/logo-clear.png", + "url": "https://cspt.top/", + "cdn": ["https://cspt.date/", "https://cspt.cc/"], + "tags": ["综合", "影视"], + "schema": "NexusPHP", + "host": "cspt.top", + "levelRequirements": [ + { + "level": 1, + "name": "Power User", + "interval": "4", + "downloaded": "50GB", + "ratio": "1.05", + "seedingPoints": "40000", + "privilege": "得到一个邀请名额;可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以发送邀请; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\"); 可以删除自己上传的字幕。" }, - "searchEntryConfig": { - "fieldSelector": { - "progress": { - "selector": [ - "> td.rowfollow:eq(1) td.embedded:eq(0) > div:last" - ], + { + "level": 2, + "name": "Elite User", + "interval": "8", + "downloaded": "120GB", + "ratio": "1.55", + "seedingPoints": "80000", + "privilege": "Elite User及以上用户封存账号后不会被删除。" + }, + { + "level": 3, + "name": "Crazy User", + "interval": "15", + "downloaded": "300GB", + "ratio": "2.05", + "seedingPoints": "150000", + "privilege": "得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。" + }, + { + "level": 4, + "name": "Insane User", + "interval": "25", + "downloaded": "500GB", + "ratio": "2.55", + "seedingPoints": "250000", + "privilege": "可以查看普通日志。" + }, + { + "level": 5, + "name": "Veteran User", + "interval": "40", + "downloaded": "750GB", + "ratio": "3.05", + "seedingPoints": "400000", + "privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。" + }, + { + "level": 6, + "name": "Extreme User", + "interval": "60", + "downloaded": "1TB", + "ratio": "3.55", + "seedingPoints": "600000", + "privilege": "可以更新过期的外部信息;可以查看Extreme User论坛。" + }, + { + "level": 7, + "name": "Ultimate User", + "interval": "80", + "downloaded": "1.5TB", + "ratio": "4.05", + "seedingPoints": "800000", + "privilege": "得到五个邀请名额。" + }, + { + "level": 8, + "name": "Nexus Master", + "interval": "100", + "downloaded": "3TB", + "ratio": "4.55", + "seedingPoints": "1000000", + "privilege": "得到十个邀请名额。" + } + ], + "collaborator": ["vanchkong"], + "categories": [ + { + "entry": "torrents.php", + "result": "&cat$id$=1", + "category": [ + { + "id": 408, + "name": "HQ音乐" + }, + { + "id": 409, + "name": "其它" + }, + { + "id": 407, + "name": "体育" + }, + { + "id": 406, + "name": "MV" + }, + { + "id": 403, + "name": "综艺" + }, + { + "id": 402, + "name": "电视剧" + }, + { + "id": 405, + "name": "动漫" + }, + { + "id": 404, + "name": "纪录片" + }, + { + "id": 401, + "name": "电影" + } + ] + } + ], + "selectors": { + "userExtendInfo": { + "page": "/userdetails.php?id=$user.id$", + "merge": "true", + "fields": { + "uploaded": { + "selector": ["td.rowhead:contains('传输') + td", "td.rowhead:contains('傳送') + td", "td.rowhead:contains('Transfers') + td", "td.rowfollow:contains('分享率')"], + "filters": ["query.text().replace(/,/g,'').match(/(上[传傳]量|Uploaded).+?([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length==3)?(query[2]).sizeToNumber():0"] + }, + "downloaded": { + "selector": ["td.rowhead:contains('传输') + td", "td.rowhead:contains('傳送') + td", "td.rowhead:contains('Transfers') + td", "td.rowfollow:contains('分享率')"], + "filters": ["query.text().replace(/,/g,'').match(/(下[载載]量|Downloaded).+?([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length==3)?(query[2]).sizeToNumber():0"] + }, + "levelName": { + "selector": ["td.rowhead:contains('等级')", "td.rowhead:contains('等級')", "td.rowhead:contains('Class')"], + "filters": ["query.next().find('img').attr('title')", "query.replace(/[^a-z0-9 ]/gi, '').trim().length > 0 ? query.replace(/[^a-z0-9 ]/gi, '').trim() : query"] + }, + "bonus": { + "selector": ["td.rowhead:contains('金元宝') + td", "td.rowfollow:contains('金元宝')", "td.rowhead:contains('bonus') + td"], "filters": [ - "query ? parseFloat(query.attr('title').match(/[\\d.]+/)) : null" + "query.is(\":contains('金元宝:')\")||query.is(\":contains('Bonus Points:')\")?query.text().replace(/,/g,'').match(/(?:金元宝|Bonus Points).+?([\\d.]+)/)[1]:query.text().replace(/,/g,'')", + "parseFloat(query)" ] }, - "status": { + "seedingPoints": { "selector": [ - "> td.rowfollow:eq(1) td.embedded:eq(0) > div:last" + "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 ? query.attr('title') : ''", - "query.indexOf('seeding') != -1 ? 2 : query.indexOf('leeching') != -1 ? 1 : query.indexOf('100%') != -1 ? 255 : 3" + "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].trim()", "dateTime(query).isValid()?dateTime(query).valueOf():query"] + }, + "unsatisfieds": { + "selector": ["a[href*='myhr.php']:last"], + "filters": ["query.length ? parseInt(query.text().match(/[\\d.]+/)[0]) : null"] } } + }, + "userSeedingTorrents": { + "page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding", + "fields": { + "seeding": { + "selector": ["b:first"], + "filters": ["query.text()"] + }, + "seedingSize": { + "selector": "", + "filters": [ + "query.text().match(/总大小:(.*?)0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0", + "(query != 0) ? query.sizeToNumber() : 0" + ] + } + } + } + }, + "searchEntryConfig": { + "fieldSelector": { + "progress": { + "selector": ["> td.rowfollow:eq(1) td.embedded:eq(0) > div:last"], + "filters": ["query ? parseFloat(query.attr('title').match(/[\\d.]+/)) : null"] + }, + "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"] + } } - } \ No newline at end of file + } +}