海盗听书.js 1.3 KB

12345678910111213141516171819202122232425
  1. var rule = {
  2. title:'海盗听书',
  3. host:'https://www.tingxiaoshuo.cc',
  4. homeUrl:'/category/6/3.html',
  5. url:'/category/6/fyclass.html?page=fypage',
  6. searchUrl:'/pc/index/search.html?keyword=**&page=fypage',
  7. searchable:2,
  8. quickSearch:0,
  9. headers:{
  10. 'User-Agent':'PC_UA'
  11. },
  12. timeout:5000,
  13. class_name:'新书&更新&人气',
  14. class_url:'1&2&3',
  15. play_parse:true,
  16. play_json:0,
  17. lazy:"let bookId=input.match(/play\\/(.*?)\\//)[1];let chapterId=input.match(/.*\\/(.*?)\\.html/)[1];let url='https://app.tingxiaoshuo.cc/listen/apptingchina/AppGetChapterUrl2022?uid=09e0bbefd378830f9615a98f239aceab&chapterId='+chapterId+'&bookId='+bookId;let res=request(url,{headers:{'User-Agent':PC_UA}});res=JSON.parse(res);input=res.src;log(input);",
  18. limit:6,
  19. double:true,
  20. 推荐:'*',
  21. 一级:'.list-works li;a&&title;img&&src;.list-book-cs span:eq(0)&&Text;a&&href',
  22. 二级:{title:'h1&&Text;.book-info dd:eq(1)&&Text',img:'.book-img img&&src',desc:';;.book-info dd:gt(3):lt(6)&&Text;.book-info dd:eq(3)&&Text;.book-info dd:eq(2)&&Text',content:'.div-b&&Text',tabs:'.playlist-top&&h2',lists:'#playlist:eq(#id) li'},
  23. 搜索:'*',
  24. // 预处理:'log("我是预处理");let html=request("https://gitcode.net/qq_32394351/dr_py/-/raw/master/js/version.txt");log(html);rule_fetch_params.headers.Cookie="searchneed=ok";',
  25. }