Skip to content

Commit 61183c9

Browse files
authored
fix(pkg/site/skyeysnow): fix torrent link parsing on detail page. (#1151)
1 parent ba8bdc7 commit 61183c9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/packages/site/definitions/skyeysnow.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,29 @@ export const siteMetadata: ISiteMetadata = {
124124
},
125125
},
126126
},
127+
128+
list: [
129+
{
130+
urlPattern: [/\/forum\.php\?mod=torrents/],
131+
},
132+
],
133+
134+
detail: {
135+
urlPattern: [/\/forum\.php\?mod=viewthread/],
136+
selectors: {
137+
title: { selector: ["span#thread_subject"] },
138+
id: {
139+
selector: ['div.pi a[href*="download.php?id="]'],
140+
attr: "href",
141+
filters: [{ name: "querystring", args: ["id"] }],
142+
},
143+
link: {
144+
selector: ['div.pi a[href*="download.php?id="][href*="&passkey="]', 'div.pi a[href*="download.php?id="]'],
145+
attr: "href",
146+
},
147+
},
148+
},
149+
127150
userInfo: {
128151
pickLast: ["id", "name"],
129152
process: [

0 commit comments

Comments
 (0)