Skip to content

Commit 3df57ea

Browse files
Merge pull request #140 from JustLookAtNow/pr-139
适配 海棠pt
2 parents 2e5e452 + 772f7dc commit 3df57ea

4 files changed

Lines changed: 203 additions & 2 deletions

File tree

assets/sites/htpt.json

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
{
2+
"name": "海棠PT",
3+
"searchCategories": [
4+
{
5+
"id": "all",
6+
"displayName": "综合",
7+
"parameters": "{}"
8+
},
9+
{
10+
"id": "yue_ju",
11+
"displayName": "越剧",
12+
"parameters": "{\"search\":\"越剧\"}"
13+
},
14+
{
15+
"id": "yue_ju_cantonese",
16+
"displayName": "粤剧",
17+
"parameters": "{\"search\":\"粤剧\"}"
18+
},
19+
{
20+
"id": "jing_ju",
21+
"displayName": "京剧",
22+
"parameters": "{\"search\":\"京剧\"}"
23+
},
24+
{
25+
"id": "xiang_sheng",
26+
"displayName": "相声",
27+
"parameters": "{\"search\":\"相声\"}"
28+
},
29+
{
30+
"id": "ping_shu",
31+
"displayName": "评书",
32+
"parameters": "{\"category\":\"normal#4091\"}"
33+
},
34+
{
35+
"id": "xi_qu",
36+
"displayName": "戏曲",
37+
"parameters": "{\"category\":\"normal#4097\"}"
38+
},
39+
{
40+
"id": "gu_qin",
41+
"displayName": "鼓/琴",
42+
"parameters": "{\"category\":\"normal#4098\"}"
43+
},
44+
{
45+
"id": "xiao_qu",
46+
"displayName": "小曲",
47+
"parameters": "{\"category\":\"normal#4099\"}"
48+
},
49+
{
50+
"id": "xiao_pin",
51+
"displayName": "小品",
52+
"parameters": "{\"category\":\"normal#4101\"}"
53+
},
54+
{
55+
"id": "er_ren_zhuan",
56+
"displayName": "二人转",
57+
"parameters": "{\"category\":\"normal#4104\"}"
58+
},
59+
{
60+
"id": "xiao_ju_zhong",
61+
"displayName": "小剧种",
62+
"parameters": "{\"category\":\"normal#4105\"}"
63+
}
64+
],
65+
"features": {
66+
"userProfile": true,
67+
"torrentSearch": true,
68+
"torrentDetail": true,
69+
"download": true,
70+
"favorites": true,
71+
"downloadHistory": true,
72+
"categorySearch": true,
73+
"advancedSearch": true,
74+
"showCover": false,
75+
"commentDetail": false
76+
},
77+
"infoFinder": {
78+
"bonusPerHour": {
79+
"path": "mybonus_new.php",
80+
"rows": {
81+
"selector": "#outer > table:nth-child(3) > tbody > tr:nth-child(2) > td:nth-child(1) > div:nth-child(3)"
82+
},
83+
"fields": {
84+
"bonusPerHour": {
85+
"selector": "",
86+
"attribute": "text",
87+
"filter": {
88+
"name": "regexp",
89+
"args": "(?:你当前每小时能获取|You are currently getting|你當前每小時能獲取)\\s*([\\d.]+)",
90+
"value": "$1"
91+
}
92+
}
93+
}
94+
},
95+
"search": {
96+
"rows": {
97+
"selector": "table.torrents > tbody:nth-child > tr:nth-child"
98+
},
99+
"fields": {
100+
"torrentId": {
101+
"selector": "a[href^=\"details.php?id=\"]",
102+
"attribute": "href",
103+
"filter": {
104+
"name": "regexp",
105+
"args": "id=(\\d+)",
106+
"value": "$1"
107+
}
108+
},
109+
"torrentName": {
110+
"selector": "a[href^=\"details.php?id=\"] > b",
111+
"attribute": "text"
112+
},
113+
"tag": {
114+
"selector": "table.torrentname > tbody > tr > td:nth-child(1) > span.torrent_tag",
115+
"attribute": "text"
116+
},
117+
"description": {
118+
"selector": "table.torrentname > tbody > tr > td:nth-child(1) > *:last-node",
119+
"attribute": "text"
120+
},
121+
"discount": {
122+
"selector": "table.torrentname > img[class^=\"pro_\"]",
123+
"attribute": "alt"
124+
},
125+
"discountEndTime": {
126+
"selector": "table.torrentname > img[class^=\"pro_\"]",
127+
"attribute": "onmouseover",
128+
"filter": {
129+
"name": "regexp",
130+
"args": "<span title=\\\"(.*?)\\\"",
131+
"value": "$1"
132+
},
133+
"time": {
134+
"format": "yyyy-MM-dd HH:mm:ss",
135+
"zone": "+08:00"
136+
}
137+
},
138+
"downloadUrl": {
139+
"value": "{baseUrl}/download.php?id={torrentId}&passkey={passKey}"
140+
},
141+
"seedersText": {
142+
"selector": "td:nth-child(6)",
143+
"attribute": "text"
144+
},
145+
"leechersText": {
146+
"selector": "td:nth-child(7)",
147+
"attribute": "text"
148+
},
149+
"sizeText": {
150+
"selector": "td:nth-child(5)",
151+
"attribute": "text"
152+
},
153+
"downloadStatus": {
154+
"selector": "table.torrentname > tbody > tr > td:nth-child(1) > div[title]",
155+
"attribute": "title",
156+
"filter": {
157+
"name": "regexp",
158+
"args": "(\\d+)%",
159+
"value": "$1"
160+
}
161+
},
162+
"collection": {
163+
"selector": "table.torrentname > img.bookmark",
164+
"attribute": "src"
165+
},
166+
"isTop": {
167+
"selector": "table.torrentname > img[title~=\"置顶|置頂\"]",
168+
"attribute": "src"
169+
},
170+
"cover": {
171+
"selector": "table.torrentname > tbody > tr > td:nth-child(1) > img[data-src]",
172+
"attribute": "data-src"
173+
},
174+
"createDate": {
175+
"selector": "td:nth-child(4) > span[title]",
176+
"attribute": "title",
177+
"time": {
178+
"format": "yyyy-MM-dd HH:mm:ss",
179+
"zone": "+08:00"
180+
}
181+
},
182+
"doubanRating": {
183+
"selector": "table.torrentname > img[title==\"douban\"] > next",
184+
"attribute": "text"
185+
},
186+
"imdbRating": {
187+
"selector": "table.torrentname > img[title==\"imdb\"] > next",
188+
"attribute": "text"
189+
}
190+
}
191+
}
192+
},
193+
"id": "htpt",
194+
"primaryUrl": "https://www.htpt.cc/",
195+
"baseUrls": [
196+
"https://www.htpt.cc/"
197+
],
198+
"siteType": "NexusPHPWeb",
199+
"logo": "assets/sites_icon/htpt.png"
200+
}

assets/sites_icon/htpt.png

1.81 KB
Loading

assets/sites_manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"hdfans.json",
1515
"hdkyl.json",
1616
"hhanclub.json",
17+
"htpt.json",
1718
"hxpt.json",
1819
"lajidui.json",
1920
"luckpt.json",

docs/SUPPORTED_SITES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 当前支持的网站
22

3-
以下清单基于 `assets/sites/*.json`(共 35 个)。
3+
以下清单基于 `assets/sites/*.json`(共 36 个)。
44

55
## M-Team(1)
66
- M-Team
@@ -20,7 +20,7 @@
2020
- 肉丝
2121
- 织梦
2222

23-
## NexusPHPWeb(19
23+
## NexusPHPWeb(20
2424
- AFUN
2525
- 末日
2626
- Audiences

0 commit comments

Comments
 (0)