影探.js 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. var 二级=`js:
  2. try {
  3. let html = request(input);
  4. html = JSON.parse(html);
  5. let node = html.data;
  6. VOD = {
  7. vod_id: node["vod_id"],
  8. vod_name: node["vod_name"],
  9. vod_pic: node["vod_pic"],
  10. type_name: node["vod_class"],
  11. vod_year: node["vod_year"],
  12. vod_area: node["vod_area"],
  13. vod_remarks: node["vod_remarks"],
  14. vod_actor: node["vod_actor"],
  15. vod_director: node["vod_director"],
  16. vod_content: node["vod_content"].strip(),
  17. };
  18. // let episodes = node.vod_url_with_player;
  19. // let playMap = {};
  20. // if (typeof play_url === "undefined") {
  21. // var play_url = ""
  22. // }
  23. // episodes.forEach(function(ep) {
  24. // let source = ep["name"];
  25. // if (!playMap.hasOwnProperty(source)) {
  26. // playMap[source] = []
  27. // }
  28. // // playMap[source].append(ep["url"])
  29. // playMap[source].append(ep["url"].replace(/影探lfytv.cn(.*).mp4#/,''))
  30. // });
  31. // let playFrom = [];
  32. // let playList = [];
  33. // Object.keys(playMap).forEach(function(key) {
  34. // playFrom.append(key);
  35. // playList.append(playMap[key])
  36. // });
  37. // let vod_play_from = playFrom.join("$$$");
  38. // let vod_play_url = playList.join("$$$");
  39. // VOD["vod_play_from"] = vod_play_from;
  40. VOD["vod_play_from"] = node["vod_play_from"];
  41. // VOD["vod_play_url"] = vod_play_url
  42. VOD["vod_play_url"] = node["vod_play_url"].replace(/影探lfytv(.*?)mp4#/g,'')
  43. } catch (e) {
  44. log("获取二级详情页发生错误:" + e.message)
  45. }
  46. `;
  47. var rule = {
  48. title: '影探[V2]', // csp_AppYsV2
  49. //host: 'http://ytcms.lfytyl.com',
  50. // hostJs:'print(HOST);let html=JSON.parse(request(HOST,{headers:{"User-Agent":PC_UA}}));let src = html.sites[0].ext.replace("/api.php/app/","");print(src);HOST=src',//网页域名根动态抓取js代码。通过HOST=赋值
  51. host: 'https://download.kstore.space/download/3313/mao/0.json',
  52. //host: 'http://ytcms.lfytyl.com',
  53. hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":"Dart/3.0 (dart:io)"}});let src = JSON.parse(html).domain;print(src);HOST=src',
  54. homeUrl:'/api.php/app/index_video',
  55. url: '/api.php/app/video?tid=fyclassfyfilter&limit=18&pg=fypage',
  56. detailUrl:'/api.php/app/video_detail?id=fyid',
  57. searchUrl: '/api.php/app/search?text=**&pg=fypage',
  58. searchable: 2,
  59. quickSearch: 0,
  60. filterable:1,
  61. headers:{'User-Agent':'Dart/2.14 (dart:io)'},
  62. timeout:5000,
  63. class_name:'新电影4K&新剧4K&好莱坞4K&豆瓣Top250电影4K&豆瓣Top100影视剧4K&港台经典4k&少儿动画4K&邵氏老电影4K&明星专辑4K&六公主4K&电影综合&电视剧综合&动漫&综艺&体育赛事', // 分类筛选 /api.php/app/nav
  64. class_url:'20&21&47&49&46&48&50&5&45&44&1&2&4&3&32',
  65. play_parse:true,
  66. lazy:'js:if(/m3u8|mp4/.test(input)){input}else if(/XY/.test(input)){let purl=request("http://lfty.lyyytv.cn/json.php?url="+input);input={jx:0,url:JSON.parse(purl).url,parse:0}}',
  67. limit:6,
  68. 推荐:'json:list;vlist;*;*;*;*',
  69. double: true,
  70. 一级:'json:list;vod_name;vod_pic;vod_remarks||vod_score;vod_id',
  71. 二级:二级,
  72. 搜索:'*',
  73. }