Skip to content

Commit 082a95a

Browse files
ted423Rhilip
authored andcommitted
fix(FSM): plugin
1 parent a911293 commit 082a95a

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

resource/sites/nextpt.net/config.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"name": "种子列表",
17-
"pages": [ "/Torrents", "/torrents-search.php" ],
17+
"pages": [ "/Torrents$" ],
1818
"scripts": [ "/schemas/NexusPHP/common.js", "/schemas/Common/torrents.js" ]
1919
}
2020
],
@@ -104,6 +104,27 @@
104104
"joinTime": {},
105105
"levelName": {}
106106
}
107+
},
108+
"common": {
109+
"page": "/Torrents",
110+
"fields": {
111+
"downloadURL": {
112+
"selector": [ "a[href*='/Torrents/download']" ],
113+
"filters": [ "query.attr('href')" ]
114+
},
115+
"size": {
116+
"selector": [ "div.visible-xs:contains('种子大小') + div" ],
117+
"filters": [ "query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>1)?(query[1]).sizeToNumber():0" ]
118+
},
119+
"downloadURLs": {
120+
"selector": [ "a[href*='/Torrents/download']" ],
121+
"filters": [ "query.toArray()" ]
122+
},
123+
"confirmSize": {
124+
"selector": [ "table.table.table-bordered > tbody td.center.tdCenter > div:contains('B')" ],
125+
"filters": [ "query" ]
126+
}
127+
}
107128
}
108129
}
109130
}

0 commit comments

Comments
 (0)