懒人听书
https://m.lrts.me/
keeper-of-the-xiao-legacy (13887)06/08 12:07
懒人听书
优质有声听书源
{
"bookSourceName": "懒人听书",
"bookSourceType": 1,
"bookSourceUrl": "https:\/\/m.lrts.me\/",
"customOrder": 505,
"enabled": true,
"enabledCookieJar": false,
"enabledExplore": true,
"exploreUrl": "@js:\nsort=[];\npush=(title,url,type1,type2)=>sort.push({\n\t\ttitle: title,\n\t\turl: url,\n\t\tstyle: {\n\t\t\t\tlayout_flexGrow: type1,\n\t\t\t\tlayout_flexBasisPercent: type2\n\t\t\t}\n\t});\n\t\t\t\ngetCategory = () =>{\n\t\t\tfl_url = \"https:\/\/m.lrts.me\/ajax\/getCategory\";\nreturn JSON.parse(java.ajax(fl_url)).data.bookTypeList; \n\t\t}\n\t\n\t getCategory().map($=>{\t \t \t \n\t\t\t\t\t push($.name, null, 1, 1);\n\t\t\t\t\t\tlist = $.subList;\n\t\tlist.map(($,index)=>{\t \t \t \n \t title = $.name;\t\n url = `@js:\n if(page == 1){\n url = \"\/ajax\/getResourceList?dsize=20&entityId=${$.id}&entityType=1&pageNum=1&showFilters=1\";\n }\n\t else{\n\t bookIds = String(source.get('bookIds')).split(\",\");\n\t \/\/bookIds = String(cache.getFile('bookIds')).split(\",\");\n maxPage = Math.floor(bookIds.length \/ 20);\r\n maxPage = bookIds.length % 20 > 0 ? maxPage + 1 : maxPage;\n if(page > maxPage) {\r\n url = null;\n }\n else{\r\n selectIndex = (page - 1) * 20;\r\n res = bookIds.slice(selectIndex, selectIndex + 20);\r\n url = \"\/ajax\/getResourceList?dsize=20&entityId=0&entityType=0&pageNum=0&showFilters=0&bookIds=\"+JSON.stringify(res);\n }\n}`;\n\t\n\t\t\tif(index+1 <= list.length - list.length%3)\n\t\t\t {\tpush(title, url, 1, 0.25);}\n\t\t\t\telse{ push(title, url, 0, 0.29);}\n }); \n }); \n\nJSON.stringify(sort);",
"header": "{\n\t\t\"Accept-Language\": \"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6\",\n\t\t\"Accept\": \"*\/*\",\n\t\t\"Connection\": \"keep-alive\",\n\t\t\"User-Agent\": \"Mozilla\/5.0 (Linux; Android 9; MIX 2S Build\/PKQ1.180729.001; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/72.0.3626.121 Mobile Safari\/537.36\",\n\t\t\"Referer\": \"https:\/\/m.lrts.me\/\",\n\t\t\"X-Requested-With\": \"kaixin.diantai\"\n}",
"lastUpdateTime": "1780891646073",
"loginUrl": "http:\/\/www.lrts.me\/",
"respondTime": 4664,
"ruleBookInfo": {
"author": "{{$.author}} 演播:{{$.announcer}}",
"coverUrl": "$.cover",
"init": "$.data.bookDetail",
"intro": "🔔 更新: {{$.update}}\n📯 演播:{{$.announcer}}\n🏷 标签:{{$.labels[*].name##\\n##,}}\n📂 内容简介:{{$.desc}}##(^|[。!?]+[”」)】]?)##$1<br>",
"kind": "{{$.type}}\n{{$.tags[*].name##支持听读劵}}\n{{$.lastUpdateTime}}\n@js:\nif(!\/VIP\/.test(result)&&\/精品\/.test(result)) \nresult = \"💰\" + result;\nelse result = result;",
"name": "$.name@put:{n: $.sections, entityType: $..entityType}",
"tocUrl": "https:\/\/m.lrts.me\/ajax\/getBookMenu?bookId={{$.id}}&pageNum=1&pageSize=50&sortType=0"
},
"ruleContent": {
"content": "@js:\n$ = JSON.parse(src);\nif($.data==null){\njava.longToast($.msg+\"\\n付费章节,请去官网付费订阅!\\n听🎶 [ 囍 ] 压压惊👻\")\nyp_url = \"https:\/\/music.163.com\/song\/media\/outer\/url?id=1817544979\";\n}else{\n\typ_url = $.data.path;\n}"
},
"ruleExplore": {},
"ruleSearch": {
"author": "{{$.author}} 演播:{{$.announcer}}",
"bookList": "<js>\nif(\/getResourceList\/.test(baseUrl)&&\/pageNum=1\/.test(baseUrl)){\n bookIds = JSON.parse(result).bookIds;\n source.put('bookIds', bookIds);\n \/\/cache.putFile('bookIds', bookIds, 3.6E6);\n result = result;\n}\nelse{result = result;}\n<\/js>\n$..list[*]||$.books[*]",
"bookUrl": "https:\/\/m.lrts.me\/ajax\/getBookDetail?bookId={{$.id}}",
"checkKeyWord": "御兽之王 | 24新晋白金作家轻泉流响 | 起点霸榜 | 快节奏爽文",
"coverUrl": "$.cover",
"intro": "$.desc",
"kind": "{{$.tags[*].name##支持听读劵|高清}}\n{{$.score}}分\n{{$.lastUpdateTime}}\n@js:\nif(!\/VIP\/.test(result)&&\/会员\/.test(result)) \nresult = \"💰\" + result;\nelse result = result;",
"lastChapter": "$.sections",
"name": "$.name"
},
"ruleToc": {
"chapterList": "$.list[*]",
"chapterName": "$.name",
"chapterUrl": "https:\/\/m.lrts.me\/ajax\/getListenPath?entityId={{baseUrl.match(\/bookId=(\\d+)\/)[1]}}&entityType={{java.get(\"entityType\")}}&opType=1§ions=[{{$.section}}]&type=0§ion={{$.section}}&id={{$.id}},{\"headers\":{\"cookie\": \"token=d0b4b76419aa2214f5d83e5db0a48deb629b6ab9c06bf66262458e0f0c22ce9a05479e7f1a1e2f8be9686f62a3def922b6b93cc67b00e0cf075b9b282231ed0ca2067c81ff60a19a3b8ca82fda10fd22c9f36c8c1a83971abaec49a2151801e6; token.sig=Mdac4MFXCTiXnfVjWCgrh525NjE\"}}",
"isVip": "$.payType",
"nextTocUrl": "@js:\nn = java.getString('$.sections')|java.get('n');\np = Math.ceil(n\/50);\njava.log(\"章节数:\" + n)\nlist = [];\nfor(var i = 2; i <= p; i++){\nhref = baseUrl.replace(\/pageNum=(\\d+)\/,\"pageNum=\"+i);\nlist.push(href);\n}\nlist",
"updateTime": "{{java.timeFormatUTC(java.getString('$.lastModify'),'yyyy-MM-dd',8)}}"
},
"searchUrl": "https:\/\/m.lrts.me\/ajax\/searchBook?keyWord={{key}}&pageSize=15&pageNum={{page}}",
"weight": 0
}