From 0427e3ec4f9edb5638363bf681a1799e29ca5b1c Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Mon, 26 Dec 2022 10:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=85=BE=E8=AE=AF=E7=BB=BC?= =?UTF-8?q?=E8=89=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/version.txt | 2 +- ...76\344\272\221\351\251\276\351\233\276.js" | 3 +- ...64\346\227\266\344\272\214\347\272\247.js" | 163 ++++++++++++++++++ ...76\350\256\257\344\272\214\347\272\247.js" | 47 ++--- readme.md | 1 + 5 files changed, 191 insertions(+), 25 deletions(-) create mode 100644 "py/\350\205\276\350\256\257\344\270\264\346\227\266\344\272\214\347\272\247.js" diff --git a/js/version.txt b/js/version.txt index 4c3247a..6f23537 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.33beta4 \ No newline at end of file +3.9.33beta5 \ No newline at end of file diff --git "a/js/\350\205\276\344\272\221\351\251\276\351\233\276.js" "b/js/\350\205\276\344\272\221\351\251\276\351\233\276.js" index 909c7cc..9ea0772 100644 --- "a/js/\350\205\276\344\272\221\351\251\276\351\233\276.js" +++ "b/js/\350\205\276\344\272\221\351\251\276\351\233\276.js" @@ -30,7 +30,8 @@ var rule = { // 二级:{is_json:1,"title":"data.title;data.moviecategory[0]+data.moviecategory[1]","img":"data.cdncover","desc":"data.area[0];data.director[0]","content":"data.description","tabs":"data.playlink_sites;data.playlinksdetail.#idv.quality","lists":"data.playlinksdetail.#idv.default_url"}, // 二级:{is_json:1,"title":"data.title;data.moviecategory[0]+data.moviecategory[1]","img":"data.cdncover","desc":"data.area[0];data.director[0]","content":"data.description","tabs":"data.playlink_sites","lists":"data.playlinksdetail.#idv.default_url"}, 二级:'', - 二级:'js:VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];let QZOutputJson;let html=fetch(input,fetch_params);let sourceId=/get_playsource/.test(input)?input.match(/id=(\\d*?)&/)[1]:input.split("cid=")[1];let cid=sourceId;let detailUrl="https://v.%71%71.com/detail/m/"+cid+".html";log("详情页:"+detailUrl);var pdfh=jsp.pdfh;var pd=jsp.pd;try{let json=JSON.parse(html);VOD={vod_url:input,vod_name:json.c.title,type_name:json.typ.join(","),vod_actor:json.nam.join(","),vod_year:json.c.year,vod_content:json.c.description,vod_remarks:json.rec,vod_pic:urljoin2(input,json.c.pic)}}catch(e){log("解析片名海报等基础信息发生错误:"+e.message)}if(/get_playsource/.test(input)){eval(html);let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+sourceId+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量:"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else{let json=JSON.parse(html);video_lists=json.c.video_ids;let url="https://v.qq.com/x/cover/"+sourceId+".html";if(json.c.type===10){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json";let o_html=fetch(dataUrl,fetch_params);eval(o_html);video_lists=[];let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量:"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else if(video_lists.length===1){d.push({title:"在线播放",url:url})}else if(video_lists.length>1){for(let i=0;i1?it1.category_map[1]:""})})})}}let yg=d.filter(function(it){return it.type&&it.type!=="正片"});let zp=d.filter(function(it){return!(it.type&&it.type!=="正片")});VOD.vod_play_from=yg.length<1?"qq":"qq$$$qq 预告及花絮";VOD.vod_play_url=yg.length<1?d.map(function(it){return it.title+"$"+it.url}).join("#"):[zp,yg].map(function(it){return it.map(function(its){return its.title+"$"+its.url}).join("#")}).join("$$$");', + 二级:'js:VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];let QZOutputJson;let html=fetch(input,fetch_params);let sourceId=/get_playsource/.test(input)?input.match(/id=(\\d*?)&/)[1]:input.split("cid=")[1];let cid=sourceId;let detailUrl="https://v.%71%71.com/detail/m/"+cid+".html";log("详情页:"+detailUrl);var pdfh=jsp.pdfh;var pd=jsp.pd;try{let json=JSON.parse(html);VOD={vod_url:input,vod_name:json.c.title,type_name:json.typ.join(","),vod_actor:json.nam.join(","),vod_year:json.c.year,vod_content:json.c.description,vod_remarks:json.rec,vod_pic:urljoin2(input,json.c.pic)}}catch(e){log("解析片名海报等基础信息发生错误:"+e.message)}if(/get_playsource/.test(input)){eval(html);let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+sourceId+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量:"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else{let json=JSON.parse(html);video_lists=json.c.video_ids;let url="https://v.qq.com/x/cover/"+sourceId+".html";if(video_lists.length===1){d.push({title:"在线播放",url:url})}else if(video_lists.length>1){for(let i=0;i1?it1.category_map[1]:""})})})}}let yg=d.filter(function(it){return it.type&&it.type!=="正片"});let zp=d.filter(function(it){return!(it.type&&it.type!=="正片")});VOD.vod_play_from=yg.length<1?"qq":"qq$$$qq 预告及花絮";VOD.vod_play_url=yg.length<1?d.map(function(it){return it.title+"$"+it.url}).join("#"):[zp,yg].map(function(it){return it.map(function(its){return its.title+"$"+its.url}).join("#")}).join("$$$");', + // 二级:'js:VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];let QZOutputJson;let html=fetch(input,fetch_params);let sourceId=/get_playsource/.test(input)?input.match(/id=(\\d*?)&/)[1]:input.split("cid=")[1];let cid=sourceId;let detailUrl="https://v.%71%71.com/detail/m/"+cid+".html";log("详情页:"+detailUrl);var pdfh=jsp.pdfh;var pd=jsp.pd;try{let json=JSON.parse(html);VOD={vod_url:input,vod_name:json.c.title,type_name:json.typ.join(","),vod_actor:json.nam.join(","),vod_year:json.c.year,vod_content:json.c.description,vod_remarks:json.rec,vod_pic:urljoin2(input,json.c.pic)}}catch(e){log("解析片名海报等基础信息发生错误:"+e.message)}if(/get_playsource/.test(input)){eval(html);let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+sourceId+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量:"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else{let json=JSON.parse(html);video_lists=json.c.video_ids;let url="https://v.qq.com/x/cover/"+sourceId+".html";if(json.c.type===10){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json";let o_html=fetch(dataUrl,fetch_params);eval(o_html);video_lists=[];let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量:"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else if(video_lists.length===1){d.push({title:"在线播放",url:url})}else if(video_lists.length>1){for(let i=0;i1?it1.category_map[1]:""})})})}}let yg=d.filter(function(it){return it.type&&it.type!=="正片"});let zp=d.filter(function(it){return!(it.type&&it.type!=="正片")});VOD.vod_play_from=yg.length<1?"qq":"qq$$$qq 预告及花絮";VOD.vod_play_url=yg.length<1?d.map(function(it){return it.title+"$"+it.url}).join("#"):[zp,yg].map(function(it){return it.map(function(its){return its.title+"$"+its.url}).join("#")}).join("$$$");', // 搜索:'json:uiData;data[0].title;data[0].posterPic;.titleMarkLabelList[1].primeText;data[0].id;data[0].publishDate', 搜索:'js:let d=[];pdfa=jsp.pdfa;pdfh=jsp.pdfh;pd=jsp.pd;let html=request(input);let baseList=pdfa(html,"body&&.result_item_v");baseList.forEach(function(it){let longText=pdfh(it,".result_title&&Text");let shortText=pdfh(it,".sub&&Text");let fromTag=pdfh(it,".result_source&&Text");let score=pdfh(it,".result_score&&Text");let content=pdfh(it,".desc_text&&Text");let url=pdfh(it,".result_title&&a&&href");let img=pd(it,".figure_pic&&src");url="https://node.video.qq.com/x/api/float_vinfo2?cid="+url.match(/.*\\/(.*?)\\.html/)[1];log(shortText+"|"+url);if(fromTag.match(/腾讯/)){d.push({title:longText.split(shortText)[0],img:img,url:url,content:content,desc:"⭐"+longText.split(shortText)[1]+"-"+shortText+" "+score})}});setResult(d);', } \ No newline at end of file diff --git "a/py/\350\205\276\350\256\257\344\270\264\346\227\266\344\272\214\347\272\247.js" "b/py/\350\205\276\350\256\257\344\270\264\346\227\266\344\272\214\347\272\247.js" new file mode 100644 index 0000000..cc3c092 --- /dev/null +++ "b/py/\350\205\276\350\256\257\344\270\264\346\227\266\344\272\214\347\272\247.js" @@ -0,0 +1,163 @@ +js: +var items = []; +var video_list = []; +var list = []; +eval(fetch('hiker://files/rules/js/g-parse-list.js', {}).split('eval(getCryptoJS());')[0]); + +function toUrl(mode, url) { + if (typeof mode === 'number') { + if (mode === 0) { + return 'hiker://empty#' + url + `@rule=js:var items = []; var origin_url = MY_URL.split('#')[1]; eval(fetch('hiker://files/rules/js/g-parse-list.js', {}).split('eval(getCryptoJS());')[0]); items.push({ title: '直链解析合集', col_type: 'text_1' }); for (var i in sort_json['qq']) { var parse_list_arr = parse_list[sort_json['qq'][i]].split('¥'); items.push({ title: parse_list_arr[0], url: parse_list_arr[1] + origin_url + parse_list_arr[2], col_type: 'text_2' }) } items.push({ title: '网页解析合集', col_type: 'text_1' }); for (var i in parsing_list) { var parsing_list_arr = parsing_list[i].split('¥'); items.push({ title: parsing_list_arr[0], url: parsing_list_arr[1] + origin_url, col_type: 'text_3' }) } setHomeResult({ data: items });`; + } else if (mode <= parse_list.length) { + return parsing_list[mode - 1].split('¥')[1] + url; + } + } else if (typeof mode === 'string') { + for (var key in parse_list) { + if (parse_list[key].indexOf(mode) > -1) { + return parse_list[key].split('¥')[1] + url + parse_list[key].split('¥')[2]; + } + } + } + return url; +} +if (MY_URL.indexOf('get_playsource') > 0) { + var video_lists = []; + eval(getResCode()); + var indexList = QZOutputJson.PlaylistItem.indexList; + for (var i in indexList) { + eval(fetch('https://s.video.qq.com/get_playsource?id=' + MY_URL.match(/id=(\d*?)&/)[1] + '&plat=2&type=4&data_type=3&range=' + indexList[i] + '&video_type=10&plname=qq&otype=json', {})); + video_lists.push.apply(video_lists, QZOutputJson.PlaylistItem.videoPlayList); + } + for (var i in video_lists) { + var data = video_lists[i]; + list.push(data.title + '¥' + data.playUrl); + items.push({ + title: data.title, + pic_url: data.pic, + desc: data.episode_number + '\t\t\t播放量:' + data.thirdLine, + url: getVar('cj','断插')=='直链'?toUrl(qq_mode, data.playUrl):($(data.playUrl).lazyRule(() => { +var config=JSON.parse(fetch("hiker://files/cache/MyParseSet.json")); eval(fetch(config.cj)); +return aytmParse(input); + })), + col_type: 'movie_1' + }); + } +} else { + var json = JSON.parse(getResCode()); + var video_lists = json.c.video_ids; + var cid = MY_URL.split('cid=')[1]; + var url = 'https://v.qq.com/x/cover/' + cid + '.html'; +/* if (json.c.type == 100&&json.c.clips_ids!=null) { + eval(fetch('https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json', {})); + var video_lists = []; + var indexList = QZOutputJson.PlaylistItem.indexList; + for (var i in indexList) { + eval(fetch('https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=4&data_type=3&range=' + indexList[i] + '&video_type=10&plname=qq&otype=json', {})); + video_lists.push.apply(video_lists, QZOutputJson.PlaylistItem.videoPlayList); + } + for (var i in video_lists) { + var data = video_lists[i]; + list.push(data.title + '¥' + data.playUrl); + items.push({ + title: data.title, + pic_url: data.pic, + desc: data.episode_number + '\t\t\t播放量:' + data.thirdLine, + url: getVar('cj','断插')=='直链'?toUrl(qq_mode, data.playUrl):($(data.playUrl).lazyRule(() => { +var config=JSON.parse(fetch("hiker://files/cache/MyParseSet.json")); eval(fetch(config.cj)); +return aytmParse(input); + })), + col_type: 'movie_1' + }); + } + } else */ + if (video_lists.length == 1) { + items.push({ + title: '直链解析', + col_type: 'text_1' + }); + for (var i in sort_json['qq']) { + var parse_list_arr = parse_list[sort_json['qq'][i]].split('¥'); + items.push({ + title: parse_list_arr[0], + url: getVar('cj','断插')=='直链'?(parse_list_arr[1] + url + parse_list_arr[2]):($(url).lazyRule(() => { +var config=JSON.parse(fetch("hiker://files/cache/MyParseSet.json")); eval(fetch(config.cj)); +return aytmParse(input); + })), + col_type: 'text_2' + }); + } + items.push({ + title: '网页解析', + col_type: 'text_1' + }); + for (var i = 0; i < parsing_list.length; i++) { + items.push({ + title: parsing_list[i].split('¥')[0], + url: parsing_list[i].split('¥')[1] + url, + col_type: 'text_3' + }); + } + } else if (video_lists.length > 1) { + for (var i = 0; i < video_lists.length; i += 30) { + video_list.push(video_lists.slice(i, i + 30)); + } + for (var i = 0; i < video_list.length; i++) { + var o_url = 'https://union.video.qq.com/fcgi-bin/data?otype=json&tid=682&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist=' + video_list[i].join(','); + eval(fetch(o_url, {})); + var col_type = QZOutputJson.results[0].fields.title.length > 12 ? 'movie_1' : 'movie_2'; + for (var j = 0; j < QZOutputJson.results.length; j++) { + var data = QZOutputJson.results[j].fields; + var url = 'https://v.qq.com/x/cover/' + cid + '/' + data.vid + '.html'; + list.push(data.title + '¥' + url); + items.push({ + title: data.title, + pic_url: data.pic160x90, + desc: data.video_checkup_time, + url: getVar('cj', '断插') == '直链' ? toUrl(qq_mode, url) : ($(url).lazyRule(() => { +var config=JSON.parse(fetch("hiker://files/cache/MyParseSet.json")); eval(fetch(config.cj)); +return aytmParse(input); + })), + col_type: col_type + }); + } + } + } else { + items.push({ + title: '原网页', + url: 'https://v.qq.com/x/cover/' + cid + '.html', + col_type: 'text_center_1' + }); + } +} +if (MY_URL.indexOf('get_playsource') > 0 || json.c.type == 10 || video_lists.length > 1) { + items.unshift({ + title: '默认设置', + url: 'hiker://empty' + `@rule=js:var items = []; eval(fetch('hiker://files/rules/js/g-parse-list.js', {}).split('eval(getCryptoJS());')[0]); var tip = "hiker://empty@lazyRule=.js:'toast://别点了,再点就坏了,要讲点武德'"; if (qq_mode == 0) { items.push({ title: '解析集合页✔', url: tip, col_type: 'text_2' }); } else { items.push({ title: '解析集合页', url: "hiker://empty@lazyRule=.js:var html = fetch('hiker://files/rules/js/g-parse-list.js', {});writeFile('hiker://files/rules/js/g-parse-list.js', html.replace(/var qq_mode.*?;/,'var qq_mode = 0;'));refreshPage();'toast://已设置为解析集合页'", col_type: 'text_2' }); }items.push({col_type: 'line' });for (var i in sort_json['qq']) { var index = sort_json['qq'][i]; var title = parse_list[index].split('¥')[0]; if (isNaN(qq_mode) && parse_list[index].indexOf(qq_mode) >= 0) { items.push({ title: title + '✔', url: tip, col_type: 'text_2' }); } else { items.push({ title: title, url: "hiker://empty@lazyRule=.js:var html = fetch('hiker://files/rules/js/g-parse-list.js', {});writeFile('hiker://files/rules/js/g-parse-list.js', html.replace(/var qq_mode.*?;/,'var qq_mode = " + '"' + title + '"' + ";'));refreshPage();'toast://已设置为" + title + "'", col_type: 'text_2' }); } }items.push({col_type: 'line' }); for (var i in parsing_list) { var title = parsing_list[i].split('¥')[0]; var mode = parseInt(i) + 1; if (qq_mode == mode) { items.push({ title: title + '✔', url: tip, col_type: 'text_3' }); } else { items.push({ title: title, url: "hiker://empty@lazyRule=.js:var html = fetch('hiker://files/rules/js/g-parse-list.js', {});writeFile('hiker://files/rules/js/g-parse-list.js', html.replace(/var qq_mode.*?;/,'var qq_mode = " + mode + ";'));refreshPage();'toast://已设置为" + title + "'", col_type: 'text_3' }); } } if (isNaN(qq_mode) && qq_mode.indexOf('北极XS') >= 0) { items.push({ title: '以下设置仅在北极XS中有效', col_type: 'text_1' }); for (var key in qq_sharpness_sets) { if (qq_sharpness_sets[key] == qq_sharpness) { items.push({ title: key + '✔', url: tip, col_type: 'text_4' }); } else { items.push({ title: key, url: "hiker://empty@lazyRule=.js:var html = fetch('hiker://files/rules/js/g-parse-list.js', {});writeFile('hiker://files/rules/js/g-parse-list.js', html.replace(/var qq_sharpness =.*?;/,'var qq_sharpness = " + '"' + qq_sharpness_sets[key] + '"' + ";'));refreshPage();'toast://已设置为" + key + "'", col_type: 'text_4' }); } } } setHomeResult({ data: items });`, + col_type: 'text_3' + }); + items.unshift({ + title: "网页解析", + url: 'hiker://empty' + `@rule=js:var res={};var items=[];var list = ["` + list.join('","') + `"];var parsing_list=["` + parsing_list.join('","') + `"];for(var i=0;i',col_type:'text_1'});for(var j=0;j10?'text_1':'text_2')})}}res.data=items;setHomeResult(res);`, + col_type: 'text_3' + }); + /* items.unshift({ + title: "直链解析", + url: set_switch/*'hiker://empty' + `@rule=js:var items = [];var list = ["` + list.join('","') + `"]; eval(fetch('hiker://files/rules/js/g-parse-list.js', {}).split('eval(getCryptoJS());')[0]); for (var i in sort_json['qq']) { var parse_list_arr = parse_list[sort_json['qq'][i]].split('¥'); items.push({title:parse_list_arr[0]+' ==>',col_type:'text_1'}); for(var j=0;j10?'text_1':'text_2')}) } } setHomeResult({ data: items });`, + col_type: 'text_3' + });*/ +} +(function() { + if (getVar('cj', '断插') == '断插') { + eval(JSON.parse(request('hiker://page/a2')).rule); + items.unshift({ + title: getVar('cj', '断插'), + url: '#noHistory#'+set, + col_type: 'text_3' + }) + } else { + eval(JSON.parse(request('hiker://page/a1')).rule) + }; +})(); +setHomeResult({ + data: items +}); \ No newline at end of file diff --git "a/py/\350\205\276\350\256\257\344\272\214\347\272\247.js" "b/py/\350\205\276\350\256\257\344\272\214\347\272\247.js" index 60a102a..4036d13 100644 --- "a/py/\350\205\276\350\256\257\344\272\214\347\272\247.js" +++ "b/py/\350\205\276\350\256\257\344\272\214\347\272\247.js" @@ -57,29 +57,30 @@ if (/get_playsource/.test(input)) { video_lists = json.c.video_ids; // print(video_lists); let url = 'https://v.qq.com/x/cover/' + sourceId + '.html'; - if (json.c.type === 10) {//综艺 - // print('流程2-1'); - let dataUrl = 'https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json'; - // print(dataUrl); - let o_html = fetch(dataUrl, fetch_params); - eval(o_html); - video_lists = []; - let indexList = QZOutputJson.PlaylistItem.indexList; - indexList.forEach(function (it){ - let dataUrl = 'https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=4&data_type=3&range=' + it + '&video_type=10&plname=qq&otype=json'; - eval(fetch(dataUrl, fetch_params)); - let vdata = QZOutputJson.PlaylistItem.videoPlayList; - vdata.forEach(function (item){ - d.push({ - title:item.title, - pic_url:item.pic, - desc:item.episode_number + '\t\t\t播放量:' + item.thirdLine, - url:item.playUrl, - }); - }); - video_lists = video_lists.concat(vdata); - }); - } else if (video_lists.length === 1) {//电影或者电视剧只有1集 + // if (json.c.type === 10) {//综艺 + // // print('流程2-1'); + // let dataUrl = 'https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json'; + // // print(dataUrl); + // let o_html = fetch(dataUrl, fetch_params); + // eval(o_html); + // video_lists = []; + // let indexList = QZOutputJson.PlaylistItem.indexList; + // indexList.forEach(function (it){ + // let dataUrl = 'https://s.video.qq.com/get_playsource?id=' + json.c.column_id + '&plat=2&type=4&data_type=3&range=' + it + '&video_type=10&plname=qq&otype=json'; + // eval(fetch(dataUrl, fetch_params)); + // let vdata = QZOutputJson.PlaylistItem.videoPlayList; + // vdata.forEach(function (item){ + // d.push({ + // title:item.title, + // pic_url:item.pic, + // desc:item.episode_number + '\t\t\t播放量:' + item.thirdLine, + // url:item.playUrl, + // }); + // }); + // video_lists = video_lists.concat(vdata); + // }); + // } + if (video_lists.length === 1) {//电影或者电视剧只有1集 // print('流程2-2'); d.push({ title: '在线播放', diff --git a/readme.md b/readme.md index e0b6c2c..e23b66f 100644 --- a/readme.md +++ b/readme.md @@ -51,6 +51,7 @@ [获取本地设备信息](https://m.jb51.net/article/140716.htm) ###### 2022/12/26 - [X] 3.9.33beta4 修复腾云驾雾搜索 +- [X] 3.9.33beta5 修复腾云驾雾综艺 ###### 2022/12/25 - [X] 3.9.33 自建解析返回默认UA,尝试优化哔哩影视.js无果 ###### 2022/12/19 -- GitLab