喵物次元.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. var rule = {
  2. title: '喵物次元',
  3. host: 'https://catw.moe',
  4. 模板:'短视2',
  5. searchUrl: '/index.php/vod/search/wd/**.html',
  6. url:'/index.php/api/vod#type=fyclass&page=fypage',
  7. searchable: 2,//是否启用全局搜索,
  8. quickSearch: 1,//是否启用快速搜索,
  9. filterable: 0,//是否启用分类筛选,
  10. headers: {
  11. 'User-Agent': 'MOBILE_UA'
  12. },
  13. play_parse: true,
  14. lazy: '',
  15. limit: 6,
  16. class_name:'TV动画&剧场版&特摄剧',
  17. class_url:'1&2&20',
  18. double: false, // 推荐内容是否双层定位
  19. 推荐: '.public-list-exp;a&&title;img&&data-src;.ft2&&Text;a&&href',
  20. 一级:`js:
  21. let body = input.split("#")[1];
  22. let t = Math.round(new Date / 1e3).toString();
  23. let key = md5("DS" + t + "DCC147D11943AF75");
  24. let url = input.split("#")[0];
  25. body = body + "&time=" + t + "&key=" + key;
  26. print(body);
  27. fetch_params.body = body;
  28. let html = post(url, fetch_params);
  29. let data = JSON.parse(html);
  30. VODS = data.list.map(function(it) {
  31. it.vod_pic = it.vod_pic.replace(/mac/, "https");
  32. return it
  33. });
  34. `,
  35. 二级: {
  36. "title": "h1&&Text;.hl-ma0&&Text",
  37. "img": ".module-item-pic&&img&&data-src",
  38. "desc": ".slide-info-remarks&&Text;.video-info-items:eq(2)&&Text;.video-infs&&Text;.video-info-item:eq(1)&&Text;.video-info-items:eq(0)&&Text",
  39. "content": "#height_limit&&Text",
  40. "tabs": ".anthology-tab&&a",
  41. "lists": ".anthology-list-box:eq(#id)&&li"
  42. },
  43. 搜索: '.public-list-box;.thumb-txt&&Text;.public-list-exp&&img&&data-src;.public-list-prb&&Text;a&&href'
  44. }