Skip to content

Commit 150a277

Browse files
committed
feat(MTV): support search
1 parent fd80234 commit 150a277

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

resource/sites/www.morethantv.me/config.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,47 @@
2020
"pages": ["/torrents/browse", "/show/(\\d+)/$","/collages.php"],
2121
"scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/torrents.js"]
2222
}],
23+
"searchEntry": [{
24+
"name": "全部",
25+
"enabled": true
26+
}],
27+
"searchEntryConfig": {
28+
"page": "torrents/browse?searchtext=$key$",
29+
"skipIMDbId": true,
30+
"name": "全部",
31+
"resultType": "html",
32+
"resultSelector": "table.torrent_table",
33+
"dataRowSelector": "> tbody > tr:not(:first-child)",
34+
"fieldIndex": {
35+
"title": 1,
36+
"link": 1,
37+
"url": 1,
38+
"time": 3,
39+
"size": 4,
40+
"author": 8,
41+
"seeders": 6,
42+
"leechers": 7,
43+
"completed": 5
44+
},
45+
"fieldSelector": {
46+
"title": {
47+
"selector": ["a.overlay_torrent"],
48+
"filters": ["query.text()"]
49+
},
50+
"link": {
51+
"selector": ["a.overlay_torrent"],
52+
"filters": ["query.attr('href')", "'https://www.morethantv.me/'+query"]
53+
},
54+
"url": {
55+
"selector": ["a[title='Download Torrent']"],
56+
"filters": ["query.attr('href')", "'https://www.morethantv.me/'+query"]
57+
},
58+
"time": {
59+
"selector": ["span.time"],
60+
"filters": ["dateTime(query.attr('title')).format()"]
61+
}
62+
}
63+
},
2364
"selectors": {
2465
"userBaseInfo": {
2566
"merge": true,

0 commit comments

Comments
 (0)