一些优化
This commit is contained in:
39 files changed
+138
-1010
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"enable": false,
|
||||
"searchUrl": "",
|
||||
"coverRule": ""
|
||||
}
|
||||
"enable": true,
|
||||
"searchUrl": "data:;base64,{{java.base64Encode(key)}},{\"type\":\"lyc\"}",
|
||||
"coverRule": "@js:\nvar key = java.hexDecodeToString(result);\nvar url1 = `https://pre-api.tuishujun.com/api/searchBook?search_value=${key}&page=1&pageSize=20`;\nvar url2 = `http://m.ypshuo.com/api/novel/search?keyword=${key}&searchType=1&page=1`;\nvar [rr1, rr2] = java.ajaxAll([url1, url2]).map(r => r.body());\nfunction jjson(str, rule) {\n try {\n return com.jayway.jsonpath.JsonPath.read(str, rule);\n } catch (e) {\n return [];\n }\n}\nrr1 = jjson(rr1, '$.data.data[*]');\nrr2 = jjson(rr2, '$.data.data[*]');\nvar na = String(book.name),\n au = String(book.author);\nfunction search() {\n for (let char of rr1) {\n //本地书名包含搜索结果书名\n if (na.includes(char.title + '')) {\n let au2 = char.author_nickname + '';\n //作者匹配\n if (au.includes(au2) || au2.includes(au)) {\n return char.cover;\n }\n }\n }\n for (let char of rr2) {\n if (na.includes(char.novel_name + '')) {\n let au2 = char.author_name + '';\n if (au.includes(au2) || au2.includes(au)) {\n return char.novel_img;\n }\n }\n }\n return '';\n}\nsearch()"
|
||||
}
|
||||
@@ -1,42 +1 @@
|
||||
[
|
||||
{
|
||||
"customOrder": 2,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
|
||||
"sourceName": "使用说明",
|
||||
"sourceUrl": "https://www.yuque.com/legado"
|
||||
},
|
||||
{
|
||||
"customOrder": 3,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "http://mmbiz.qpic.cn/mmbiz_png/hpfMV8hEuL2eS6vnCxvTzoOiaCAibV6exBzJWq9xMic9xDg3YXAick87tsfafic0icRwkQ5ibV0bJ84JtSuxhPuEDVquA/0?wx_fmt=png",
|
||||
"sourceName": "小说拾遗",
|
||||
"sourceUrl": "snssdk1128://user/profile/562564899806367"
|
||||
},
|
||||
{
|
||||
"customOrder": 4,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://cdn.jsdelivr.net/gh/mgz0227/meowcloud/icon.png",
|
||||
"sourceName": "Meow云",
|
||||
"sourceUrl": "https://pan.miaogongzi.net"
|
||||
},
|
||||
{
|
||||
"customOrder": 5,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
|
||||
"sourceName": "烏雲净化",
|
||||
"sourceUrl": "https://www.lanzoux.com/b0bw8jwoh"
|
||||
}
|
||||
]
|
||||
[]
|
||||
Reference in new issue
Block a user