海洋听书.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. var rule = {
  2. title:'海洋听书',
  3. 编码:'gb18030',
  4. host:'http://m.ychy.cc',
  5. homeUrl:'/best.html',
  6. url:'/list/fyclass_fypage.html',
  7. searchUrl:'/search.asp?page=fypage&searchword=**&searchtype=-1',
  8. searchable:2,
  9. quickSearch:0,
  10. headers:{
  11. 'User-Agent':'MOBILE_UA'
  12. },
  13. class_name:'网络玄幻&恐怖悬疑&评书下载&儿童读物&相声戏曲&传统武侠&都市言情&历史军事&人物传记&广播剧&百家讲坛&有声文学&探险盗墓&职场商战',
  14. class_url:'52&17&3&4&7&12&13&15&16&18&32&41&45&81',
  15. play_parse:true,
  16. lazy:'',
  17. limit:6,
  18. double:true,
  19. 推荐:'*',
  20. 一级:'.list-ul li;.tit&&Text;img&&src;p span:eq(0)&&Text;a&&href',
  21. 二级:{
  22. title:'h2&&Text;.info div:eq(4)&&Text',
  23. img:'.bookimg img&&src',
  24. desc:'.info div:eq(3)&&Text;;;.info div:eq(2)&&Text;.info div:eq(1)&&Text',
  25. content:'.book_intro&&Text',
  26. tabs:'.sub_tit',
  27. // lists:'#playlist li',
  28. lists:`js:
  29. pd = jsp.pd;
  30. let url = pd(html, ".bookbutton&&a&&href");
  31. // log(url);
  32. html = request(url);
  33. let v = pd(html, ".booksite&&script&&Html");
  34. var document = {};
  35. var VideoListJson;
  36. VideoListJson = eval(v.split("VideoListJson=")[1].split(",urlinfo")[0]);
  37. // log(typeof VideoListJson);
  38. let list1 = VideoListJson[0][1];
  39. LISTS = [list1];
  40. // log(LISTS);
  41. `,
  42. },
  43. 搜索:`js:
  44. let d = [];
  45. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  46. // log(input);
  47. let html = request(input);
  48. var list = pdfa(html, '.book_slist&&.bookbox');
  49. list.forEach(function(it) {
  50. d.push({
  51. title: pdfh(it, 'h4&&Text'),
  52. desc: pdfh(it, '.update&&Text'),
  53. pic_url: pd(it, 'img&&orgsrc'),
  54. url: 'http://m.ychy.com/book/' + pdfh(it, '.bookbox&&bookid') + '.html'
  55. })
  56. });
  57. setResult(d);
  58. `,
  59. }