zhaoziyuan.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. var rule={
  2. title:'找资源',
  3. 模板:'AlistShare',
  4. host:'https://zhaoziyuan1.cc/',
  5. url:'/index.php/vod/show/id/fyclass/page/fypage.html',
  6. filterable:0,//是否启用分类筛选,
  7. filter_url:'',
  8. filter: {},
  9. searchUrl:'/so?filename=**',
  10. searchable:2,
  11. // 图片来源:'https://inews.gtimg.com/newsapp_bt/0/13263837859/1000',
  12. class_parse: 'ul.nav-menu-items&&li.nav-menu-item;a.nav-link&&Text;a.nav-link&&href;/(\\d+).html',
  13. 推荐:';;*;*;*;*',
  14. double:true,
  15. 一级:'*;*;*;*;*',
  16. 二级:`js:
  17. let id=input;
  18. let title="";
  19. let pic="";
  20. let typeName="";
  21. let dec="";
  22. let remark="";
  23. let vod={vod_id:id,vod_name:title,vod_pic:pic,type_name:typeName,vod_remarks:remark,vod_content:dec};
  24. let html = getHtml(MY_URL);
  25. let patternAli = new RegExp('(https:\\/\\/www\.alipan\.com\\/s\\/[^"]+)|(https:\\/\\/www\.aliyundrive\.com\\/s\\/[^"]+)', 'g');
  26. let matches = html.match(patternAli);
  27. initPan();
  28. let panVod = panDetailContent(vod ,matches);
  29. TABS = panVod.tabs
  30. LISTS = panVod.lists
  31. detailError = panVod.error
  32. vod["vod_play_from"]=panVod.tabs.join("$$$");
  33. for (var i in LISTS) {
  34. if (LISTS.hasOwnProperty(i)) {
  35. // print(i);
  36. try {
  37. LISTS[i] = LISTS[i].map(function (it) {
  38. return it.split('$').slice(0, 2).join('$');
  39. });
  40. } catch (e) {
  41. print('格式化LISTS发生错误:' + e.message);
  42. }
  43. }
  44. }
  45. vod_play_url = LISTS.map(function (it) {
  46. return it.join('#');
  47. }).join("$$$");
  48. vod["vod_play_url"]=vod_play_url;
  49. VOD=vod;
  50. `,
  51. 搜索:'div.li_con .news_text a;h3&&Text;;p&&Text;a&&href',
  52. }