diff --git a/resource/sites/www.morethantv.me/config.json b/resource/sites/www.morethantv.me/config.json index 71170c45f..2ab65a9ed 100644 --- a/resource/sites/www.morethantv.me/config.json +++ b/resource/sites/www.morethantv.me/config.json @@ -3,7 +3,7 @@ "timezoneOffset": "+0000", "description": "", "icon": "https://www.morethantv.me/favicon.ico", - "schema": "Luminance", + "schema": "Common", "tags": ["电视剧", "剧集"], "url": "https://www.morethantv.me", "collaborator": "luckiestone", @@ -11,10 +11,15 @@ "formerHosts": [ "www.morethan.tv" ], - "supportedFeatures": { - "search": false, - "imdbSearch": false - }, + "plugins": [{ + "name": "种子详情页面", + "pages": ["/torrents.php"], + "scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/details.js"] + }, { + "name": "种子列表", + "pages": ["/torrents/browse", "/show/(\\d+)/$","/collages.php"], + "scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/torrents.js"] + }], "selectors": { "userBaseInfo": { "merge": true, @@ -74,6 +79,27 @@ "filters": ["query.attr('title')||query.text()", "dateTime(query).isValid()?dateTime(query).valueOf():query"] } } + }, + "common": { + "page": "/torrents.php", + "fields": { + "downloadURL": { + "selector": ["tr[id*='torrentinfo'][class!='hidden']"], + "filters": ["query.prev().find(\"a[href*='action=download']\").attr('href')"] + }, + "size": { + "selector": ["tr.group_torrent > td.nobr"], + "filters": ["query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>1)?(query[1]).sizeToNumber():0"] + }, + "downloadURLs": { + "selector": ["a[href*='action=download']"], + "filters": ["query.toArray()"] + }, + "confirmSize": { + "selector": ["tr.group_torrent > td.nobr"], + "filters": ["query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>1)?(query[1]).sizeToNumber():0"] + } + } } } } \ No newline at end of file