yunpanres.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. var rule = {
  2. title:'云盘资源网',
  3. host:'https://res.yunpan.win',
  4. url:'/?PageIndex=fypage&PageSize=12&Keyword=&Type=fyclass&Tag=',
  5. detailUrl:'/',
  6. searchUrl:'/?PageIndex=fypage&PageSize=12&Keyword=**&Type=&Tag=',
  7. searchable:1,
  8. filterable:1,
  9. quickSearch:0,
  10. timeout:30000,
  11. class_name:'全部&电影&电视剧&动画&纪录片&综艺',
  12. class_url:'&电影&电视剧&动画&纪录片&综艺',
  13. play_parse:true,
  14. lazy:`js:
  15. input = panPlay(input,playObj.flag)
  16. `,
  17. limit:5,
  18. 推荐:'.card;.card-title&&Text;.col-md-4&&img&&src;.card-text:eq(1)&&Text;.card-link:eq(1)&&onclick',
  19. 一级:'.card;.card-title&&Text;.col-md-4&&img&&src;.card-text:eq(1)&&Text;.card-link:eq(1)&&onclick',
  20. 二级:`js:
  21. let matches=input.match(/open\\(\\'(.*)\\'\\)/);
  22. const urls = matches[1];
  23. let title="";
  24. let pic="";
  25. let typeName="";
  26. let dec=urls;
  27. let remark="";
  28. let vod={vod_id:urls,vod_name:title,vod_pic:pic,type_name:typeName,vod_remarks:remark,vod_content:dec};
  29. initPan();
  30. let panVod = panDetailContent(vod ,[urls]);
  31. TABS = panVod.tabs
  32. LISTS = panVod.lists
  33. detailError = panVod.error
  34. vod["vod_play_from"]=panVod.tabs.join("$$$");
  35. for (var i in LISTS) {
  36. if (LISTS.hasOwnProperty(i)) {
  37. // print(i);
  38. try {
  39. LISTS[i] = LISTS[i].map(function (it) {
  40. return it.split('$').slice(0, 2).join('$');
  41. });
  42. } catch (e) {
  43. print('格式化LISTS发生错误:' + e.message);
  44. }
  45. }
  46. }
  47. vod_play_url = LISTS.map(function (it) {
  48. return it.join('#');
  49. }).join("$$$");
  50. vod["vod_play_url"]=vod_play_url;
  51. VOD=vod;
  52. `,
  53. 搜索:'.card;.card-title&&Text;.col-md-4&&img&&src;.card-text:eq(1)&&Text;.card-link:eq(1)&&onclick',
  54. }