Skip to content

Commit

Permalink
[fix] 1ptbar hdfans hdtime 做种体积不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
kidgokugoku authored and ted423 committed Sep 28, 2022
1 parent 53715da commit 62267bc
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 97 deletions.
10 changes: 4 additions & 6 deletions resource/sites/1ptba.com/config.json
Expand Up @@ -4,10 +4,7 @@
"url": "https://1ptba.com/",
"description": "壹PT吧,PT下载,教育视频,课件资源,发布教育类,学习类,纪录片等资源",
"icon": "https://1ptba.com/favicon.ico",
"tags": [
"影视",
"综合"
],
"tags": ["影视", "综合"],
"host": "1ptba.com",
"selectors": {
"userSeedingTorrents": {
Expand All @@ -20,8 +17,9 @@
"seedingSize": {
"selector": "",
"filters": [
"/总大小:(.*?)类型/.exec(query.text())[1]",
"(query != 0) ? query.sizeToNumber() : 0"
"query.text().match(/总大小:(.*?)</g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0",
"(query != 0) ? _self.getTotalSize([query]) : 0"
]
}
}
Expand Down
57 changes: 39 additions & 18 deletions resource/sites/hdfans.org/config.json
@@ -1,23 +1,44 @@
{
"name": "HDFans",
"timezoneOffset": "+0800",
"description": "与志同道合之人前行 分享更多值得珍藏的资源",
"url": "https://hdfans.org",
"icon": "https://hdfans.org/favicon.ico",
"tags": ["综合", "电影", "电视剧", "纪录片"],
"schema": "NexusPHP",
"host": "hdfans.org",
"collaborator": "csi0n",
"searchEntryConfig": {
"fieldSelector": {
"progress": {
"selector": ["> td:eq(9)"],
"filters": ["query.text()=='--'?null:parseFloat(query.text())"]
"name": "HDFans",
"timezoneOffset": "+0800",
"description": "与志同道合之人前行 分享更多值得珍藏的资源",
"url": "https://hdfans.org",
"icon": "https://hdfans.org/favicon.ico",
"tags": ["综合", "电影", "电视剧", "纪录片"],
"schema": "NexusPHP",
"host": "hdfans.org",
"collaborator": "csi0n",
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": ["b:first"],
"filters": ["query.text()"]
},
"status": {
"selector": ["> td:eq(9)"],
"filters": ["query.text()==='--'?null:(parseFloat(query.text())==100?255:3)"]
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)</g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0",
"(query != 0) ? _self.getTotalSize([query]) : 0"
]
}
}
}
}
},
"searchEntryConfig": {
"fieldSelector": {
"progress": {
"selector": ["> td:eq(9)"],
"filters": ["query.text()=='--'?null:parseFloat(query.text())"]
},
"status": {
"selector": ["> td:eq(9)"],
"filters": [
"query.text()==='--'?null:(parseFloat(query.text())==100?255:3)"
]
}
}
}
}
146 changes: 73 additions & 73 deletions resource/sites/hdtime.org/config.json
Expand Up @@ -4,10 +4,7 @@
"description": "HDTime, time to forever!",
"url": "https://hdtime.org/",
"icon": "https://hdtime.org/favicon.ico",
"tags": [
"影视",
"综合"
],
"tags": ["影视", "综合"],
"schema": "NexusPHP",
"host": "hdtime.org",
"selectors": {
Expand All @@ -21,8 +18,8 @@
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)类型/g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('类型', '').trim() : 0",
"query.text().match(/总大小:(.*?)</g)",
"(query && query.length>0 ) ? query[0].replace('总大小:', '').replace('<', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
Expand All @@ -32,24 +29,24 @@
"searchEntryConfig": {
"fieldSelector": {
"progress": {
"selector": ["div[title*='seeding']", "div[title*='inactivity']",""],
"selector": ["div[title*='seeding']", "div[title*='inactivity']", ""],
"switchFilters": [
["100"],
["query.attr('title').split(' ')", "query[1]?parseInt(query[1].substr(0,query[1].length-1)):undefined"],
[
"query.attr('title').split(' ')",
"query[1]?parseInt(query[1].substr(0,query[1].length-1)):undefined"
],
["undefined"]
]
},
"status": {
"selector": ["div[title*='seeding']", "div[title*='inactivity']",""],
"switchFilters": [
["2"],
["3"],
["undefined"]
]
"selector": ["div[title*='seeding']", "div[title*='inactivity']", ""],
"switchFilters": [["2"], ["3"], ["undefined"]]
}
}
},
"searchEntry": [{
"searchEntry": [
{
"name": "全站",
"enabled": true
},
Expand Down Expand Up @@ -119,61 +116,64 @@
"enabled": false
}
],
"categories": [{
"entry": "torrents.php",
"result": "&cat$id$=1",
"category": [{
"id": 401,
"name": "电影"
},
{
"id": 424,
"name": "Blu-Ray原盘"
},
{
"id": 402,
"name": "剧集"
},
{
"id": 403,
"name": "综艺"
},
{
"id": 405,
"name": "动漫"
},
{
"id": 414,
"name": "软件"
},
{
"id": 407,
"name": "体育"
},
{
"id": 404,
"name": "纪录片"
},
{
"id": 406,
"name": "MV"
},
{
"id": 408,
"name": "音乐"
},
{
"id": 410,
"name": "游戏"
},
{
"id": 411,
"name": "文档"
},
{
"id": 409,
"name": "其他"
}
]
}]
}
"categories": [
{
"entry": "torrents.php",
"result": "&cat$id$=1",
"category": [
{
"id": 401,
"name": "电影"
},
{
"id": 424,
"name": "Blu-Ray原盘"
},
{
"id": 402,
"name": "剧集"
},
{
"id": 403,
"name": "综艺"
},
{
"id": 405,
"name": "动漫"
},
{
"id": 414,
"name": "软件"
},
{
"id": 407,
"name": "体育"
},
{
"id": 404,
"name": "纪录片"
},
{
"id": 406,
"name": "MV"
},
{
"id": 408,
"name": "音乐"
},
{
"id": 410,
"name": "游戏"
},
{
"id": 411,
"name": "文档"
},
{
"id": 409,
"name": "其他"
}
]
}
]
}

0 comments on commit 62267bc

Please sign in to comment.