gzys.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. rule = {
  2. host: 'http://gz360.tv',
  3. class_name: '电影&电视剧&动漫&综艺',
  4. class_url: '3&4&5&6',
  5. //homeVod: '.van-swipe-item;img&&alt;a&&href;img&&data-src;.movie-cover&&Text',
  6. categoryVodJS: `
  7. var params = '{"pid":' + classId+',"pageSize":24,"page":' +page+'}';
  8. var enData = aesEncode(params, '181cc88340ae5b2b', '4423d1e2773476ce', 'hex');
  9. request('https://api.zaqohu.com/H5/Category/GetChoiceList', {params: enData}, {}, 'post');|||
  10. var res = aesDecode(JSON.parse(html).data, '181cc88340ae5b2b', '4423d1e2773476ce','hex');
  11. let json = JSON.parse(res);
  12. json.list.forEach(function(item){
  13. videos.push({
  14. vod_id: item.vod_id,
  15. vod_name: item.c_name,
  16. vod_pic: item.c_pic,
  17. vod_remarks: item.vod_continu,
  18. vod_year: item.vod_douban_score,
  19. });
  20. });
  21. `,
  22. detailVodJS: `
  23. var params = '{"vod_id":"'+input+'"}';
  24. var enData = aesEncode(params, '181cc88340ae5b2b', '4423d1e2773476ce', 'hex');
  25. request('https://api.zaqohu.com/H5/Resource/GetVodInfo', {params: enData}, {}, 'post');|||
  26. var res = aesDecode(JSON.parse(html).data, '181cc88340ae5b2b', '4423d1e2773476ce','hex');
  27. var json = JSON.parse(res).vodInfo;
  28. videoDetail = {
  29. vod_id: json.vod_id,
  30. vod_name: json.vod_name,
  31. vod_pic: json.pic,
  32. vod_year: json.vod_year,
  33. vod_area: json.vod_area,
  34. vod_remarks: json.vod_continu,
  35. vod_actor: json.vod_actor,
  36. vod_director: json.vod_director,
  37. vod_content: json.vod_use_content,
  38. };
  39. var params = '{"vod_id":"'+input+'","pageSize":"10000","page":"1"}';
  40. var enData = aesEncode(params, '181cc88340ae5b2b', '4423d1e2773476ce', 'hex');
  41. request('https://api.zaqohu.com/H5/Resource/GetOnePlayList', {params: enData}, {}, 'post');|||
  42. var res = aesDecode(JSON.parse(html).data, '181cc88340ae5b2b', '4423d1e2773476ce','hex');
  43. var json = JSON.parse(res);
  44. videoDetail.vod_play_url = _.map(json.urls, item => item.name + '$' + item.url).join('#');
  45. videoDetail.vod_play_from = 'leospring';
  46. videos.push(videoDetail);
  47. `,
  48. }