金牌影视.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. var rule = {
  2. title: '金牌影院',
  3. host: 'https://m.cfkj86.com',
  4. url: '/api/mw-movie/anonymous/video/list?pageNum=fypage&pageSize=30&sort=1&sortBy=1&type1=fyclass',
  5. searchUrl: '/api/mw-movie/anonymous/video/searchByWordPageable?keyword=**&pageNum=fypage&pageSize=12&type=false',
  6. headers: {
  7. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
  8. 'Referer': 'https://www.cfkj86.com/'
  9. },
  10. searchable: 2,
  11. quickSearch: 0,
  12. filterable: 0,
  13. class_name: '电影&电视剧&综艺&动漫',
  14. class_url: '1&2&3&4',
  15. limit: 6,
  16. double: false,
  17. play_parse:true,
  18. lazy:$js.toString(()=>{
  19. let pid = input.split('/')[5]
  20. let nid = input.split('/')[7]
  21. const t = new Date().getTime()
  22. eval(getCryptoJS)
  23. let signkey = 'id='+pid+'&nid='+nid+'&key=cb808529bae6b6be45ecfab29a4889bc&t='+t
  24. const key = CryptoJS.SHA1(CryptoJS.MD5(signkey).toString()).toString()
  25. let json_data = JSON.parse(request('https://www.cfkj86.com/api/mw-movie/anonymous/v1/video/episode/url?id='+pid+'&nid='+nid,{headers: {
  26. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
  27. 'deviceid': 'c6bce57d-bb62-4db7-96cd-265dfb2a79cf',
  28. 'sign': key,
  29. 't': t
  30. }}))
  31. log(json_data)
  32. let link = json_data.data.playUrl
  33. input={url:link,header:rule.headers}
  34. }),
  35. 一级: $js.toString(()=>{
  36. let d = []
  37. let url = ''
  38. const t = new Date().getTime()
  39. const signkey = 'pageNum='+MY_PAGE+'&pageSize=30&sort=1&sortBy=1&type1='+MY_CATE+'&key=cb808529bae6b6be45ecfab29a4889bc&t='+t
  40. const key = CryptoJS.SHA1(CryptoJS.MD5(signkey).toString()).toString()
  41. const list = JSON.parse(request(input,{headers:{
  42. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
  43. 'Accept': 'application/json, text/plain, */*',
  44. 'deviceId': 'c6bce57d-bb62-4db7-96cd-265dfb2a79cf',
  45. 'sign': key,
  46. 't': t
  47. }})).data.list
  48. list.forEach((it)=>{
  49. url = 'https://www.cfkj86.com/detail/'+it.vodId
  50. d.push({
  51. title: it.vodName,
  52. desc:it.vodRemarks,
  53. img:it.vodPic,
  54. url:url
  55. })
  56. })
  57. setResult(d)
  58. }),
  59. 二级: {
  60. title: 'h1&&Text',
  61. tabs: '.top a',
  62. lists: '.main-list-sections__BodyArea-sc-8bb7334b-2 .listitem a',
  63. },
  64. 搜索: $js.toString(()=>{
  65. const t = new Date().getTime()
  66. eval(getCryptoJS)
  67. let pg = MY_PAGE
  68. let signkey = 'keyword='+KEY+'&pageNum='+pg+'&pageSize=12&type=false&key=cb808529bae6b6be45ecfab29a4889bc&t='+t
  69. const key = CryptoJS.SHA1(CryptoJS.MD5(signkey).toString()).toString()
  70. let html = JSON.parse(request(input,{headers: {
  71. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
  72. 'deviceid': '58a80c52-138c-48fd-8edb-138fd74d12c8',
  73. 'sign': key,
  74. 't': t
  75. }}))
  76. let data = html.data.list
  77. let d = []
  78. data.forEach(it=>{
  79. let reurl = 'https://www.cfkj86.com/detail/'+it.vodId
  80. d.push({
  81. title: it.vodName,
  82. desc:it.vodVersion,
  83. img:it.vodPic,
  84. url:reurl
  85. })
  86. })
  87. setResult(d)
  88. }),
  89. }