jsp.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. globalThis.getHeaders= function(input){
  2. let headers = {
  3. 'User-Agent': 'okhttp/4.1.0'
  4. };
  5. return headers
  6. }
  7. var rule = {
  8. title:'点播',
  9. host:'http://tv.jsp47.com',
  10. homeUrl:'',
  11. //searchUrl:'https://www.suying.lol/index.php/vod/search.html?wd=**',
  12. searchUrl:'https://search.video.iqiyi.com/o?if=html5&key=**&pageNum=fypage&pos=1&pageSize=25&site=iqiyi',
  13. searchable:2,
  14. quickSearch:1,
  15. multi:1,
  16. filterable:1,
  17. headers:{
  18. 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36'
  19. },
  20. timeout:5000,
  21. limit:20,
  22. play_parse:true,
  23. lazy:"",
  24. 推荐:"",
  25. 一级:"",
  26. 二级:`js:
  27. let d = [];
  28. try {
  29. let html = request(input, {
  30. headers: getHeaders(url)
  31. });
  32. let json = JSON.parse(html).data;
  33. VOD = {
  34. vod_name: "",
  35. type_name: "",
  36. vod_actor: "",
  37. vod_year: "",
  38. vod_content: "",
  39. vod_remarks: "",
  40. vod_pic: ""
  41. };
  42. VOD.type_name = "";
  43. VOD.vod_actor = "";
  44. VOD.vod_content = "特别提醒:ㅤ友情提示您请勿相信影片中的广告,以免上当受骗";
  45. let playData = json;
  46. let playMap = {};
  47. playData.forEach(function(it, index) {
  48. VOD.vod_name =it.name;
  49. VOD.vod_pic = "http://114.100.48.52:18008/movjpg/" + it.name + ".jpg";
  50. let names = it.name +" ("+ (index+1) +")";
  51. let playEsp = it.source.eps;
  52. playEsp.forEach(function(it) {
  53. let source = names;
  54. if (!playMap.hasOwnProperty(source)) {
  55. playMap[source] = []
  56. }
  57. playMap[source].append(it['name'].strip() + '$' + it['url']);
  58. })
  59. })
  60. let playFrom = [];
  61. let playList = [];
  62. Object.keys(playMap)
  63. .forEach(function(key) {
  64. playFrom.append(key);
  65. playList.append(playMap[key].join('#'))
  66. });
  67. let vod_play_from = playFrom.join('$$$');
  68. let vod_play_url = playList.join('$$$');
  69. VOD['vod_play_from'] = vod_play_from;
  70. VOD['vod_play_url'] = vod_play_url
  71. } catch (e) {
  72. log('获取二级详情页发生错误:' + e.message)
  73. }
  74. `,
  75. 搜索:`js:
  76. let d = [];
  77. let html = request(input);
  78. let json = JSON.parse(html);
  79. json.data.docinfos.forEach(function(data) {
  80. let channelName = data.albumDocInfo.channel.split(',')[0];
  81. if ((data.is_exactly_same === true)&&(channelName.includes('电影') || channelName.includes('电视剧') || channelName.includes('综艺') || channelName.includes('动漫') || channelName.includes('少儿'))) {
  82. d.push({
  83. url: "https://www.ugigc.us.kg/jsp.php?jx=" + data.albumDocInfo.albumTitle,
  84. title: data.albumDocInfo.albumTitle,
  85. img: data.albumDocInfo.albumVImage,
  86. content:data.albumDocInfo.channel,
  87. desc: data.albumDocInfo.tvFocus
  88. })
  89. }
  90. });
  91. setResult(d);
  92. `
  93. }