Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zzzlllmmm1
dr_py
提交
ccf041f0
dr_py
项目概览
zzzlllmmm1
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ccf041f0
编写于
10月 06, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改涉及js:二级的规则,更改vod为VOD
上级
4fe8f0d1
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
95 addition
and
86 deletion
+95
-86
base/rules.db
base/rules.db
+0
-0
controllers/cms.py
controllers/cms.py
+1
-1
js/360影视.js
js/360影视.js
+2
-5
js/优酷.js
js/优酷.js
+2
-1
js/奇珍异兽.js
js/奇珍异兽.js
+2
-1
js/百忙无果.js
js/百忙无果.js
+2
-1
js/腾云驾雾.js
js/腾云驾雾.js
+2
-1
js/菜狗.js
js/菜狗.js
+1
-1
js/酷云77.js
js/酷云77.js
+2
-1
py/360二级.js
py/360二级.js
+3
-3
py/优酷二级.js
py/优酷二级.js
+17
-15
py/搜狗二级.js
py/搜狗二级.js
+21
-20
py/爱奇艺二级.js
py/爱奇艺二级.js
+14
-13
py/腾讯二级.js
py/腾讯二级.js
+6
-5
py/芒果二级.js
py/芒果二级.js
+13
-12
py/酷云二级.js
py/酷云二级.js
+7
-6
未找到文件。
base/rules.db
浏览文件 @
ccf041f0
无法预览此类型文件
controllers/cms.py
浏览文件 @
ccf041f0
...
...
@@ -997,7 +997,7 @@ class CMS:
# print(jscode)
loader
,
_
=
runJScode
(
jscode
,
ctx
=
ctx
)
# print(loader.toString())
vod
=
loader
.
eval
(
'
vod
'
)
vod
=
loader
.
eval
(
'
VOD
'
)
if
isinstance
(
vod
,
JsObjectWrapper
):
vod
=
vod
.
to_dict
()
if
show_name
:
...
...
js/360影视.js
浏览文件 @
ccf041f0
...
...
@@ -22,10 +22,6 @@ var rule = {
// lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
推荐
:
'
json:data;title;cover;comment;cat+ent_id;description
'
,
一级
:
'
json:data.movies;title;cover;pubdate;id;description
'
,
// 二级:{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:let html=JSON.parse(fetch(input,fetch_params));let data=html.data;let tilte=data.title;let img=data.cdncover;let vod_type=data.moviecategory.join(",");let area=data.area.join(",");let director=data.director.join(",");let actor=data.actor.join(",");let content=data.description;base_vod={vod_id:input,vod_name:tilte,type_name:vod_type,vod_actor:actor,vod_director:director,vod_content:content,vod_remarks:area,vod_pic:urljoin2(input,img)};let delta=200;let vod_play={};let sites=data.playlink_sites;for(let i in sites){let site=sites[i];let playList="";let vodItems=[];if(data.allupinfo){let total=parseInt(data.allupinfo[site]);for(let j=1;j<total;j+=delta){let end=Math.min(total,j+delta-1);let url2=buildUrl(input,{start:j,end:end,site:site});let vod_data=JSON.parse(fetch(url2),fetch_params).data;if(vod_data.allepidetail){vod_data=vod_data.allepidetail[site];vod_data.forEach(function(item,index){vodItems.push((item.playlink_num||"")+"$"+urlDeal(item.url||""))})}else{vod_data=vod_data.defaultepisode;vod_data.forEach(function(item,index){vodItems.push((item.period||"")+(item.name||"")+"$"+urlDeal(item.url)||"")})}}}else{let item=data.playlinksdetail[site];vodItems.push((item.sort||"")+"$"+urlDeal(item.default_url||""))}if(vodItems.length>0){playList=vodItems.join("#")}if(playList.length<1){continue}vod_play[site]=playList}let tabs=Object.keys(vod_play);let playUrls=[];for(let id in tabs){playUrls.push(vod_play[tabs[id]])}if(tabs.length>0){vod_play_from=tabs.join("$$$");vod_play_url=playUrls.join("$$$");base_vod.vod_play_from=vod_play_from;base_vod.vod_play_url=vod_play_url}vod=base_vod;
'
,
// 二级:'js:let html=JSON.parse(fetch(input,fetch_params));let data=html.data;let tilte=data.title;let img=data.cdncover;let vod_type=data.moviecategory.join(",");let area=data.area.join(",");let director=data.director.join(",");let actor=data.actor.join(",");let content=data.description;base_vod={vod_id:input,vod_name:tilte,type_name:vod_type,vod_actor:actor,vod_director:director,vod_content:content,vod_remarks:area,vod_pic:urljoin2(input,img)};let delta=200;let vod_play={};let sites=data.playlink_sites;for(let i in sites){let site=sites[i];let playList="";let vodItems=[];if(data.allupinfo){let total=parseInt(data.allupinfo[site]);for(let j=1;j<total;j+=delta){let end=Math.min(total,j+delta-1);let url2=buildUrl(input,{start:j,end:end,site:site});let vod_data=JSON.parse(fetch(url2),fetch_params).data;if(vod_data.allepidetail){vod_data=vod_data.allepidetail[site];vod_data.forEach(function(item,index){vodItems.push((item.playlink_num||"")+"$"+(item.url||""))})}else{vod_data=vod_data.defaultepisode;vod_data.forEach(function(item,index){vodItems.push((item.period||"")+(item.name||"")+"$"+item.url||"")})}}}else{let item=data.playlinksdetail[site];vodItems.push((item.sort||"")+"$"+(item.default_url||""))}if(vodItems.length>0){playList=vodItems.join("#")}if(playList.length<1){continue}vod_play[site]=playList}let tabs=Object.keys(vod_play);let playUrls=[];for(let id in tabs){playUrls.push(vod_play[tabs[id]])}if(tabs.length>0){vod_play_from=tabs.join("$$$");vod_play_url=playUrls.join("$$$");base_vod.vod_play_from=vod_play_from;base_vod.vod_play_url=vod_play_url}vod=base_vod;',
// 搜索:'json:data.longData.rows;titleTxt;cover;cat_name;cat_id+en_id;description',
二级
:
'
js:let html=JSON.parse(fetch(input,fetch_params));let data=html.data;let tilte=data.title;let img=data.cdncover;let vod_type=data.moviecategory.join(",");let area=data.area.join(",");let director=data.director.join(",");let actor=data.actor.join(",");let content=data.description;base_vod={vod_id:input,vod_name:tilte,type_name:vod_type,vod_actor:actor,vod_director:director,vod_content:content,vod_remarks:area,vod_pic:urljoin2(input,img)};let delta=200;let vod_play={};let sites=data.playlink_sites;for(let i in sites){let site=sites[i];let playList="";let vodItems=[];if(data.allupinfo){let total=parseInt(data.allupinfo[site]);for(let j=1;j<total;j+=delta){let end=Math.min(total,j+delta-1);let url2=buildUrl(input,{start:j,end:end,site:site});let vod_data=JSON.parse(fetch(url2),fetch_params).data;if(vod_data.allepidetail){vod_data=vod_data.allepidetail[site];vod_data.forEach(function(item,index){vodItems.push((item.playlink_num||"")+"$"+urlDeal(item.url||""))})}else{vod_data=vod_data.defaultepisode;vod_data.forEach(function(item,index){vodItems.push((item.period||"")+(item.name||"")+"$"+urlDeal(item.url)||"")})}}}else{let item=data.playlinksdetail[site];vodItems.push((item.sort||"")+"$"+urlDeal(item.default_url||""))}if(vodItems.length>0){playList=vodItems.join("#")}if(playList.length<1){continue}vod_play[site]=playList}let tabs=Object.keys(vod_play);let playUrls=[];for(let id in tabs){playUrls.push(vod_play[tabs[id]])}if(tabs.length>0){vod_play_from=tabs.join("$$$");vod_play_url=playUrls.join("$$$");base_vod.vod_play_from=vod_play_from;base_vod.vod_play_url=vod_play_url}VOD=base_vod;
'
,
搜索
:
'
json:data.longData.rows;titleTxt||titlealias;cover;cat_name;cat_id+en_id;description
'
,
}
\ No newline at end of file
js/优酷.js
浏览文件 @
ccf041f0
...
...
@@ -30,7 +30,7 @@ var rule = {
一级
:
''
,
一级
:
'
js:let d=[];MY_FL.type=MY_CATE;let fl=stringify(MY_FL);fl=encodeUrl(fl);input=input.split("{")[0]+fl;if(MY_PAGE>1){let old_session=getItem("yk_session_"+MY_CATE,"{}");if(MY_PAGE===2){input=input.replace("optionRefresh=1","session="+encodeUrl(old_session))}else{input=input.replace("optionRefresh=1","session="+encodeUrl(old_session))}}let html=fetch(input,fetch_params);try{html=JSON.parse(html);let lists=html.data.filterData.listData;let session=html.data.filterData.session;session=stringify(session);if(session!==getItem("yk_session_"+MY_CATE,"{}")){setItem("yk_session_"+MY_CATE,session)}lists.forEach(function(it){let vid;if(it.videoLink.includes("id_")){vid=it.videoLink.split("id_")[1].split(".html")[0]}else{vid="msearch:"}d.push({title:it.title,img:it.img,desc:it.summary,url:"https://search.youku.com/api/search?appScene=show_episode&showIds="+vid,content:it.subTitle})})}catch(e){log("一级列表解析发生错误:"+e.message)}setResult(d);
'
,
二级
:
''
,
二级
:
'
js:var d=[];
var vod={vod_id:input};let html=request(input);let json=JSON.parse(html);if(/keyword/.test(input)){input="https://search.youku.com/api/search?appScene=show_episode&showIds="+json.pageComponentList[0].commonData.showId;json=JSON.parse(fetch(MY_URL,fetch_params))}let video_lists=json.serisesList;var name=json.sourceName;if(/优酷/.test(name)&&video_lists.length>0){let ourl="https://v.youku.com/v_show/id_"+video_lists[0].videoId+".html";let _img=video_lists[0].thumbUrl;let html=fetch(ourl,{headers:{Referer:"https://v.youku.com/","User-Agent":PC_UA}});let json=/__INITIAL_DATA__/.test(html)?html.split("window.__INITIAL_DATA__ =")[1].split(";")[0]:"{}";if(json==="{}"){log("触发了优酷人机验证");vod.vod_remarks=ourl;vod.vod_pic=_img;vod.vod_name=video_lists[0].title.replace(/(
\\
d+)/g,"");vod.vod_content="触发了优酷人机验证,本次未获取详情,但不影响播放("+ourl+")"}else{try{json=JSON.parse(json);let data=json.data.data;let data_extra=data.data.extra;let img=data_extra.showImgV;let model=json.data.model;let m=model.detail.data.nodes[0].nodes[0].nodes[0].data;let _type=m.showGenre;let _desc=m.updateInfo||m.subtitle;let JJ=m.desc;let _title=m.introTitle;vod.vod_pic=img;vod.vod_name=_title;vod.vod_type=_type;vod.vod_remarks=_desc;vod.vod_content=JJ}catch(e){log("海报渲染发生错误:"+e.message);vod.vod_remarks=name}}}if(!/优酷/.test(name)){vod.vod_content="非自家播放源,暂无视频简介及海报";vod.vod_remarks=name}function adhead(url){return urlencode(url)}play_url=play_url.replace("&play_url=","&type=json&play_url=");video_lists.forEach(function(it){let url="https://v.youku.com/v_show/id_"+it.videoId+".html";if(it.thumbUrl){d.push({desc:it.showVideoStage?it.showVideoStage.replace("期","集"):it.displayName,pic_url:it.thumbUrl,title:it.title,url:play_url+adhead(url)})}else if(name!=="优酷"){d.push({title:it.displayName?it.displayName:it.title,url:play_url+adhead(it.url)})}});vod.vod_play_from=name;vod
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
二级
:
'
js:var d=[];
VOD={vod_id:input};let html=request(input);let json=JSON.parse(html);if(/keyword/.test(input)){input="https://search.youku.com/api/search?appScene=show_episode&showIds="+json.pageComponentList[0].commonData.showId;json=JSON.parse(fetch(MY_URL,fetch_params))}let video_lists=json.serisesList;var name=json.sourceName;if(/优酷/.test(name)&&video_lists.length>0){let ourl="https://v.youku.com/v_show/id_"+video_lists[0].videoId+".html";let _img=video_lists[0].thumbUrl;let html=fetch(ourl,{headers:{Referer:"https://v.youku.com/","User-Agent":PC_UA}});let json=/__INITIAL_DATA__/.test(html)?html.split("window.__INITIAL_DATA__ =")[1].split(";")[0]:"{}";if(json==="{}"){log("触发了优酷人机验证");VOD.vod_remarks=ourl;VOD.vod_pic=_img;VOD.vod_name=video_lists[0].title.replace(/(
\\
d+)/g,"");VOD.vod_content="触发了优酷人机验证,本次未获取详情,但不影响播放("+ourl+")"}else{try{json=JSON.parse(json);let data=json.data.data;let data_extra=data.data.extra;let img=data_extra.showImgV;let model=json.data.model;let m=model.detail.data.nodes[0].nodes[0].nodes[0].data;let _type=m.showGenre;let _desc=m.updateInfo||m.subtitle;let JJ=m.desc;let _title=m.introTitle;VOD.vod_pic=img;VOD.vod_name=_title;VOD.vod_type=_type;VOD.vod_remarks=_desc;VOD.vod_content=JJ}catch(e){log("海报渲染发生错误:"+e.message);print(json);VOD.vod_remarks=name}}}if(!/优酷/.test(name)){VOD.vod_content="非自家播放源,暂无视频简介及海报";VOD.vod_remarks=name}function adhead(url){return urlencode(url)}play_url=play_url.replace("&play_url=","&type=json&play_url=");video_lists.forEach(function(it){let url="https://v.youku.com/v_show/id_"+it.videoId+".html";if(it.thumbUrl){d.push({desc:it.showVideoStage?it.showVideoStage.replace("期","集"):it.displayName,pic_url:it.thumbUrl,title:it.title,url:play_url+adhead(url)})}else if(name!=="优酷"){d.push({title:it.displayName?it.displayName:it.title,url:play_url+adhead(it.url)})}});VOD.vod_play_from=name;VOD
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
搜索
:
''
,
搜索
:
'
js:var d=[];let html=request(input);let json=JSON.parse(html);json.pageComponentList.forEach(function(it){if(it.hasOwnProperty("commonData")){it=it.commonData;d.push({title:it.titleDTO.displayName,img:it.posterDTO.vThumbUrl,desc:it.stripeBottom,content:it.updateNotice+" "+it.feature,url:"https://search.youku.com/api/search?appScene=show_episode&showIds="+it.showId+"&appCaller=h5"})}});setResult(d);
'
,
}
\ No newline at end of file
js/奇珍异兽.js
浏览文件 @
ccf041f0
...
...
@@ -33,7 +33,7 @@ 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.name+data.subtitle;data.latestOrder","img":"data.imageUrl","desc":"data.categories;data.areas","content":"data.description","tabs":"data.name","lists":"data.playlinksdetail.#idv.default_url"},
二级
:
''
,
二级
:
'
js:let d=[];let html=request(input);let json=JSON.parse(html).data;
vod={vod_id:"",vod_url:input,vod_name:"",type_name:"",vod_actor:"",vod_year:"",vod_director:"",vod_area:"",vod_content:"",vod_remarks:"",vod_pic:""};vod.vod_name=json.name;try{if(json.latestOrder){vod.vod_remarks="类型: "+(json.categories[0].name||"")+"
\\
t"+(json.categories[1].name||"")+"
\\
t"+(json.categories[2].name||"")+"
\\
t"+"评分:"+(json.score||"")+"
\\
n更新至:第"+json.latestOrder+"集(期)/共"+json.videoCount+"集(期)"}else{vod.vod_remarks="类型: "+(json.categories[0].name||"")+"
\\
t"+(json.categories[1].name||"")+"
\\
t"+(json.categories[2].name||"")+"
\\
t"+"评分:"+(json.score||"")+json.period}}catch(e){vod.vod_remarks=json.subtitle}vod.vod_area=(json.focus||"")+"
\\
n资费:"+(json.payMark===1?"VIP":"免费")+"
\\
n地区:"+(json.areas||"");let vsize="579_772";try{vsize=json.imageSize[12]}catch(e){}vod.vod_pic=json.imageUrl.replace(".jpg","_"+vsize+".jpg?caplist=jpg,webp");vod.type_name=json.categories.map(function(it){return it.name}).join(",");if(json.people.main_charactor){let vod_actors=[];json.people.main_charactor.forEach(function(it){vod_actors.push(it.name)});vod.vod_actor=vod_actors.join(",")}vod.vod_content=json.description;let playlists=[];if(json.channelId===1||json.channelId===5){playlists=[{playUrl:json.playUrl,imageUrl:json.imageUrl,shortTitle:json.shortTitle,focus:json.focus,period:json.period}]}else{if(json.channelId===6){let qs=json.period.split("-")[0];let listUrl="https://pcw-api.iqiyi.com/album/source/svlistinfo?cid=6&sourceid="+json.albumId+"&timelist="+qs;let playData=JSON.parse(request(listUrl)).data[qs];playData.forEach(function(it){playlists.push({playUrl:it.playUrl,imageUrl:it.imageUrl,shortTitle:it.shortTitle,focus:it.focus,period:it.period})})}else{let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page=1";let data=JSON.parse(request(listUrl)).data;let total=data.total;playlists=data.epsodelist;if(total>200){for(let i=2;i<total/200+1;i++){let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page="+i;let data=JSON.parse(request(listUrl)).data;playlists=playlists.concat(data.epsodelist)}}}}playlists.forEach(function(it){d.push({title:it.shortTitle||"第"+it.order+"集",desc:it.subtitle||it.focus||it.period,img:it.imageUrl.replace(".jpg","_480_270.jpg?caplist=jpg,webp"),url:it.playUrl})});vod.vod_play_from="qiyi";vod
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
二级
:
'
js:let d=[];let html=request(input);let json=JSON.parse(html).data;
VOD={vod_id:"",vod_url:input,vod_name:"",type_name:"",vod_actor:"",vod_year:"",vod_director:"",vod_area:"",vod_content:"",vod_remarks:"",vod_pic:""};VOD.vod_name=json.name;try{if(json.latestOrder){VOD.vod_remarks="类型: "+(json.categories[0].name||"")+"
\\
t"+(json.categories[1].name||"")+"
\\
t"+(json.categories[2].name||"")+"
\\
t"+"评分:"+(json.score||"")+"
\\
n更新至:第"+json.latestOrder+"集(期)/共"+json.videoCount+"集(期)"}else{VOD.vod_remarks="类型: "+(json.categories[0].name||"")+"
\\
t"+(json.categories[1].name||"")+"
\\
t"+(json.categories[2].name||"")+"
\\
t"+"评分:"+(json.score||"")+json.period}}catch(e){VOD.vod_remarks=json.subtitle}VOD.vod_area=(json.focus||"")+"
\\
n资费:"+(json.payMark===1?"VIP":"免费")+"
\\
n地区:"+(json.areas||"");let vsize="579_772";try{vsize=json.imageSize[12]}catch(e){}VOD.vod_pic=json.imageUrl.replace(".jpg","_"+vsize+".jpg?caplist=jpg,webp");VOD.type_name=json.categories.map(function(it){return it.name}).join(",");if(json.people.main_charactor){let vod_actors=[];json.people.main_charactor.forEach(function(it){vod_actors.push(it.name)});VOD.vod_actor=vod_actors.join(",")}VOD.vod_content=json.description;let playlists=[];if(json.channelId===1||json.channelId===5){playlists=[{playUrl:json.playUrl,imageUrl:json.imageUrl,shortTitle:json.shortTitle,focus:json.focus,period:json.period}]}else{if(json.channelId===6){let qs=json.period.split("-")[0];let listUrl="https://pcw-api.iqiyi.com/album/source/svlistinfo?cid=6&sourceid="+json.albumId+"&timelist="+qs;let playData=JSON.parse(request(listUrl)).data[qs];playData.forEach(function(it){playlists.push({playUrl:it.playUrl,imageUrl:it.imageUrl,shortTitle:it.shortTitle,focus:it.focus,period:it.period})})}else{let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page=1";let data=JSON.parse(request(listUrl)).data;let total=data.total;playlists=data.epsodelist;if(total>200){for(let i=2;i<total/200+1;i++){let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page="+i;let data=JSON.parse(request(listUrl)).data;playlists=playlists.concat(data.epsodelist)}}}}playlists.forEach(function(it){d.push({title:it.shortTitle||"第"+it.order+"集",desc:it.subtitle||it.focus||it.period,img:it.imageUrl.replace(".jpg","_480_270.jpg?caplist=jpg,webp"),url:it.playUrl})});VOD.vod_play_from="qiyi";VOD
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
// 二级:'js:let d=[];let html=request(input);let json=JSON.parse(html).data;vod={vod_id:"",vod_url:input,vod_name:"",type_name:"",vod_actor:"",vod_year:"",vod_director:"",vod_area:"",vod_content:"",vod_remarks:"",vod_pic:""};vod.vod_name=json.name;try{if(json.latestOrder){vod.vod_remarks="类型: "+(json.categories[0].name||"")+"\\t"+(json.categories[1].name||"")+"\\t"+(json.categories[2].name||"")+"\\t"+"评分:"+(json.score||"")+"\\n更新至:第"+json.latestOrder+"集(期)/共"+json.videoCount+"集(期)"}else{vod.vod_remarks="类型: "+(json.categories[0].name||"")+"\\t"+(json.categories[1].name||"")+"\\t"+(json.categories[2].name||"")+"\\t"+"评分:"+(json.score||"")+json.period}}catch(e){vod.vod_remarks=json.subtitle}vod.vod_area=(json.focus||"")+"\\n资费:"+(json.payMark===1?"VIP":"免费")+"\\n地区:"+(json.areas||"");let vsize="579_772";try{vsize=json.imageSize[12]}catch(e){}vod.vod_pic=json.imageUrl.replace(".jpg","_"+vsize+".jpg?caplist=jpg,webp");vod.type_name=json.categories.map(function(it){return it.name}).join(",");if(json.people.main_charactor){vod_actors=[];json.people.main_charactor.forEach(function(it){vod_actors.push(it.name)});vod.vod_actor=vod_actors.join(",")}vod.vod_content=json.description;let playlists=[];if(json.channelId===1||json.channelId===5){playlists=[{playUrl:json.playUrl,imageUrl:json.imageUrl,shortTitle:json.shortTitle,focus:json.focus,period:json.period}]}else{if(json.channelId===6){let qs=json.period.split("-")[0];let listUrl="https://pcw-api.iqiyi.com/album/source/svlistinfo?cid=6&sourceid="+json.albumId+"&timelist="+qs;let playData=JSON.parse(request(listUrl)).data[qs];playData.forEach(function(it){playlists.push({playUrl:it.playUrl,imageUrl:it.imageUrl,shortTitle:it.shortTitle,focus:it.focus,period:it.period})})}else{let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page=1";let data=JSON.parse(request(listUrl)).data;let total=data.total;playlists=data.epsodelist;if(total>200){for(let i=2;i<total/200+1;i++){let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page="+i;let data=JSON.parse(request(listUrl)).data;playlists=playlists.concat(data.epsodelist)}}}}playlists.forEach(function(it){d.push({title:it.shortTitle||"第"+it.order+"集",desc:it.subtitle||it.focus||it.period,img:it.imageUrl.replace(".jpg","_480_270.jpg?caplist=jpg,webp"),url:it.playUrl})});vod.vod_play_from="qiyi";vod.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");',
搜索
:
'
json:.data.docinfos;.albumDocInfo.albumTitle;.albumDocInfo.albumVImage;.albumDocInfo.channel;.albumDocInfo.albumId;.albumDocInfo.tvFocus
'
,
}
\ No newline at end of file
js/百忙无果.js
浏览文件 @
ccf041f0
...
...
@@ -28,7 +28,7 @@ var rule = {
// 一级:'json:data.hitDocs;title;img;updateInfo;playPartId',
二级
:
''
,
二级
:
'
js:log(input);
'
,
二级
:
'
js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
vod={};let d=[];let html=request(input);let json=JSON.parse(html);let host="https://www.mgtv.com";let ourl=json.data.list.length>0?json.data.list[0].url:json.data.series[0].url;if(!/^http/.test(ourl)){ourl=host+ourl}fetch_params.headers["User-Agent"]=MOBILE_UA;html=request(ourl);if(html.includes("window.location =")){print("开始获取ourl");ourl=pdfh(html,"meta[http-equiv=refresh]&&content").split("url=")[1];print("获取到ourl:"+ourl);html=request(ourl)}try{let details=pdfh(html,".m-details&&Html").replace(/h1>/,"h6>").replace(/div/g,"br");let actor="",director="",time="";if(/播出时间/.test(details)){actor=pdfh(html,"p:eq(5)&&Text").substr(0,25);director=pdfh(html,"p:eq(4)&&Text");time=pdfh(html,"p:eq(3)&&Text")}else{actor=pdfh(html,"p:eq(4)&&Text").substr(0,25);director=pdfh(html,"p:eq(3)&&Text");time="已完结"}let _img=pd(html,".video-img&&img&&src");let JJ=pdfh(html,".desc&&Text").split("简介:")[1];let _desc=time;vod.vod_name=pdfh(html,".vt-txt&&Text");vod.type_name=pdfh(html,"p:eq(0)&&Text").substr(0,6);vod.vod_area=pdfh(html,"p:eq(1)&&Text");vod.vod_actor=actor;vod.vod_director=director;vod.vod_remarks=_desc;vod.vod_pic=_img;vod.vod_content=JJ}catch(e){log("获取影片信息发生错误:"+e.message)}function getRjpg(imgUrl,xs){xs=xs||3;let picSize=/jpg_/.test(imgUrl)?imgUrl.split("jpg_")[1].split(".")[0]:false;let rjpg=false;if(picSize){let a=parseInt(picSize.split("x")[0])*xs;let b=parseInt(picSize.split("x")[1])*xs;rjpg=a+"x"+b+".jpg"}let img=/jpg_/.test(imgUrl)&&rjpg?imgUrl.replace(imgUrl.split("jpg_")[1],rjpg):imgUrl;return img}if(json.data.total===1&&json.data.list.length===1){let data=json.data.list[0];let url="https://www.mgtv.com"+data.url;d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}else if(json.data.list.length>1){for(let i=1;i<=json.data.total_page;i++){if(i>1){json=JSON.parse(fetch(input.replace("page=1","page="+i),{}))}json.data.list.forEach(function(data){let url="https://www.mgtv.com"+data.url;if(data.isIntact=="1"){d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}})}}else{print(input+"暂无片源")}vod.vod_play_from="mgtv";vod
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");setResult(d);
'
,
二级
:
'
js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
VOD={};let d=[];let html=request(input);let json=JSON.parse(html);let host="https://www.mgtv.com";let ourl=json.data.list.length>0?json.data.list[0].url:json.data.series[0].url;if(!/^http/.test(ourl)){ourl=host+ourl}fetch_params.headers["User-Agent"]=MOBILE_UA;html=request(ourl);if(html.includes("window.location =")){print("开始获取ourl");ourl=pdfh(html,"meta[http-equiv=refresh]&&content").split("url=")[1];print("获取到ourl:"+ourl);html=request(ourl)}try{let details=pdfh(html,".m-details&&Html").replace(/h1>/,"h6>").replace(/div/g,"br");let actor="",director="",time="";if(/播出时间/.test(details)){actor=pdfh(html,"p:eq(5)&&Text").substr(0,25);director=pdfh(html,"p:eq(4)&&Text");time=pdfh(html,"p:eq(3)&&Text")}else{actor=pdfh(html,"p:eq(4)&&Text").substr(0,25);director=pdfh(html,"p:eq(3)&&Text");time="已完结"}let _img=pd(html,".video-img&&img&&src");let JJ=pdfh(html,".desc&&Text").split("简介:")[1];let _desc=time;VOD.vod_name=pdfh(html,".vt-txt&&Text");VOD.type_name=pdfh(html,"p:eq(0)&&Text").substr(0,6);VOD.vod_area=pdfh(html,"p:eq(1)&&Text");VOD.vod_actor=actor;VOD.vod_director=director;VOD.vod_remarks=_desc;VOD.vod_pic=_img;VOD.vod_content=JJ}catch(e){log("获取影片信息发生错误:"+e.message)}function getRjpg(imgUrl,xs){xs=xs||3;let picSize=/jpg_/.test(imgUrl)?imgUrl.split("jpg_")[1].split(".")[0]:false;let rjpg=false;if(picSize){let a=parseInt(picSize.split("x")[0])*xs;let b=parseInt(picSize.split("x")[1])*xs;rjpg=a+"x"+b+".jpg"}let img=/jpg_/.test(imgUrl)&&rjpg?imgUrl.replace(imgUrl.split("jpg_")[1],rjpg):imgUrl;return img}if(json.data.total===1&&json.data.list.length===1){let data=json.data.list[0];let url="https://www.mgtv.com"+data.url;d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}else if(json.data.list.length>1){for(let i=1;i<=json.data.total_page;i++){if(i>1){json=JSON.parse(fetch(input.replace("page=1","page="+i),{}))}json.data.list.forEach(function(data){let url="https://www.mgtv.com"+data.url;if(data.isIntact=="1"){d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}})}}else{print(input+"暂无片源")}VOD.vod_play_from="mgtv";VOD
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");setResult(d);
'
,
搜索
:
''
,
搜索
:
'
js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;let d=[];let html=request(input);let json=JSON.parse(html);json.data.contents.forEach(function(data){if(data.data.sourceList||data.data.yearList){let list=data.data.sourceList?data.data.sourceList:data.data.yearList[0].sourceList;let desc="";list.forEach(function(it){desc+=it.name+"
\\
t"});if(list[0].source==="imgo"){let img=data.data.pic?data.data.pic:data.data.yearList[0].pic;d.push({title:data.data.title?data.data.title:data.data.yearList[0].title,img:img,content:data.data.story?data.data.story:data.data.yearList[0].story,desc:data.data.playTime,url:list[0].vid})}}});setResult(d);
'
,
}
\ No newline at end of file
js/腾云驾雾.js
浏览文件 @
ccf041f0
...
...
@@ -29,6 +29,6 @@ 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:var
vod={};let d=[];let video_list=[];let video_lists=[];let list=[];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_id:json.c.vid,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;i<video_lists.length;i+=30){video_list.push(video_lists.slice(i,i+30))}video_list.forEach(function(it,idex){let o_url="https://union.video.qq.com/fcgi-bin/data?otype=json&tid=682&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist="+it.join(",");let o_html=fetch(o_url,fetch_params);eval(o_html);QZOutputJson.results.forEach(function(it1){it1=it1.fields;let url="https://v.qq.com/x/cover/"+cid+"/"+it1.vid+".html";d.push({title:it1.title,pic_url:it1.pic160x90.replace("/160",""),desc:it1.video_checkup_time,url:url})})})}}vod.vod_play_from="qq";vod
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
二级
:
'
js:var
VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];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_id:json.c.vid,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;i<video_lists.length;i+=30){video_list.push(video_lists.slice(i,i+30))}video_list.forEach(function(it,idex){let o_url="https://union.video.qq.com/fcgi-bin/data?otype=json&tid=682&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist="+it.join(",");let o_html=fetch(o_url,fetch_params);eval(o_html);QZOutputJson.results.forEach(function(it1){it1=it1.fields;let url="https://v.qq.com/x/cover/"+cid+"/"+it1.vid+".html";d.push({title:it1.title,pic_url:it1.pic160x90.replace("/160",""),desc:it1.video_checkup_time,url:url})})})}}VOD.vod_play_from="qq";VOD
.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");
'
,
搜索
:
'
json:uiData;data[0].title;data[0].posterPic;.titleMarkLabelList[1].primeText;data[0].id;data[0].publishDate
'
,
}
\ No newline at end of file
js/菜狗.js
浏览文件 @
ccf041f0
...
...
@@ -24,7 +24,7 @@ var rule = {
// 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
一级
:
'
js:let d=[];let html=request(input);html=JSON.parse(html);let list=html.listData.results;list.forEach(function(it){let desc1=it.ipad_play_for_list.finish_episode?it.ipad_play_for_list.episode===it.ipad_play_for_list.finish_episode?"全集"+it.ipad_play_for_list.finish_episode:"连载"+it.ipad_play_for_list.episode+"/"+it.ipad_play_for_list.finish_episode:"";let desc2=it.score?"评分:"+it.score:"";let desc3=it.date?"更至:"+it.date:"";d.push({title:it.name,img:it.v_picurl,url:"https://v.sogou.com"+it.url.replace("teleplay","series").replace("cartoon","series"),desc:desc1||desc2||desc3})});setResult(d);
'
,
二级
:
''
,
二级
:
'
js:var
vod={vod_id:input};let html=request(input);function adhead(url){let hd="https://v.sogou.com";if(!url.startsWith(hd)){url=hd+url}return urlencode(url)}try{let json=JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).detail.itemData;let key=json.dockey;let name=json.name;let zone=json.zone;let score=json.score?json.score:"暂无";let style=json.style;let emcee=json.emcee?"主持:"+json.emcee:json.name;let director=json.director?"导演:"+json.director:name;director=director.replace(/;/g,"
\\
t");let starring=json.starring?"演员:"+json.starring:"声优:"+json.shengyou;starring=starring.replace(/.*undefined/,"").replace(/;/g,"
\\
t");let update=json.update_wordstr?json.update_wordstr:"";let tv_station=json.tv_station?json.tv_station:zone;let introduction=json.introduction;let shengyou=json.shengyou;let shows=json.play_from_open_index;let plays=json.play.item_list;if(shows){vod.vod_name=name;vod.vod_area=emcee+","+tv_station;vod.vod_director=director;vod.vod_actor=starring;vod.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");vod.vod_remarks=style+" 评分:"+score+","+update;vod.vod_content=introduction}else{vod.vod_name=name;vod.vod_director=director;vod.vod_actor=starring;vod.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");vod.vod_content=introduction}let tp="&type=json";try{let tabs=[];let lists=[];plays.forEach(function(it){lists.push(it.info);let tbn=it.sitename[0]||it.site.replace(".com","");tbn=tbn.split("").join(" ");tabs.push(tbn)});vod.vod_play_from=tabs.join("$$$");vod_lists=[];play_url=play_url.replace("&play_url=","&type=json&play_url=");lists.forEach(function(item,idex){if(item||shows){if(item&&Array.isArray(item)&&item.length>1){let tmp=item.slice(1).map(function(its){return its.index+"$"+play_url+base64Encode(adhead(its.url))});vod_lists.push(tmp.join("#"))}if(shows){let arr=[];let tmp=[];let zy=shows.item_list[idex];zy.date.forEach(function(date){let day=date.day;for(let j=0;j<day.length;j++){let dayy=day[j][0]>=10?day[j][0]:"0"+day[j][0];let Tdate=date.year+date.month+dayy;arr.push(Tdate)}});for(let k=0;k<arr.length;k++){let url="https://v.sogou.com/vc/eplay?query="+arr[k]+"&date="+arr[k]+"&key="+key+"&st=5&tvsite="+plays[idex].site;tmp.push("第"+arr[k]+"期"+"$"+play_url+base64Encode(adhead(url)))}vod_lists.push(tmp.join("#"))}}else if(plays[idex].site){let tmp=[];if(!plays[idex].flag_list.includes("trailer")){tmp.push(plays[idex].sitename[0]+"$"+play_url+base64Encode(adhead(plays[idex].url)))}else{tmp.push(plays[idex].sitename[0]+"—预告"+"$"+play_url+base64Encode(adhead(plays[idex].url)))}vod_lists.push(tmp.join("#"))}});vod.vod_play_url=vod_lists.join("$$$")}catch(e){let img=json.photo.item_list;vod.vod_name="本片无选集";vod
.vod_pic=img.length>0?img[0]:""}}catch(e){}
'
,
二级
:
'
js:var
VOD={vod_id:input};let html=request(input);function adhead(url){let hd="https://v.sogou.com";if(!url.startsWith(hd)){url=hd+url}return urlencode(url)}try{let json=JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).detail.itemData;let key=json.dockey;let name=json.name;let zone=json.zone;let score=json.score?json.score:"暂无";let style=json.style;let emcee=json.emcee?"主持:"+json.emcee:json.name;let director=json.director?"导演:"+json.director:name;director=director.replace(/;/g,"
\\
t");let starring=json.starring?"演员:"+json.starring:"声优:"+json.shengyou;starring=starring.replace(/.*undefined/,"").replace(/;/g,"
\\
t");let update=json.update_wordstr?json.update_wordstr:"";let tv_station=json.tv_station?json.tv_station:zone;let introduction=json.introduction;let shengyou=json.shengyou;let shows=json.play_from_open_index;let plays=json.play.item_list;if(shows){VOD.vod_name=name;VOD.vod_area=emcee+","+tv_station;VOD.vod_director=director;VOD.vod_actor=starring;VOD.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");VOD.vod_remarks=style+" 评分:"+score+","+update;VOD.vod_content=introduction}else{VOD.vod_name=name;VOD.vod_director=director;VOD.vod_actor=starring;VOD.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");VOD.vod_content=introduction}let tp="&type=json";try{let tabs=[];let lists=[];plays.forEach(function(it){lists.push(it.info);let tbn=it.sitename[0]||it.site.replace(".com","");tbn=tbn.split("").join(" ");tabs.push(tbn)});VOD.vod_play_from=tabs.join("$$$");vod_lists=[];play_url=play_url.replace("&play_url=","&type=json&play_url=");lists.forEach(function(item,idex){if(item||shows){if(item&&Array.isArray(item)&&item.length>1){let tmp=item.slice(1).map(function(its){return its.index+"$"+play_url+base64Encode(adhead(its.url))});vod_lists.push(tmp.join("#"))}if(shows){let arr=[];let tmp=[];let zy=shows.item_list[idex];zy.date.forEach(function(date){let day=date.day;for(let j=0;j<day.length;j++){let dayy=day[j][0]>=10?day[j][0]:"0"+day[j][0];let Tdate=date.year+date.month+dayy;arr.push(Tdate)}});for(let k=0;k<arr.length;k++){let url="https://v.sogou.com/vc/eplay?query="+arr[k]+"&date="+arr[k]+"&key="+key+"&st=5&tvsite="+plays[idex].site;tmp.push("第"+arr[k]+"期"+"$"+play_url+base64Encode(adhead(url)))}vod_lists.push(tmp.join("#"))}}else if(plays[idex].site){let tmp=[];if(!plays[idex].flag_list.includes("trailer")){tmp.push(plays[idex].sitename[0]+"$"+play_url+base64Encode(adhead(plays[idex].url)))}else{tmp.push(plays[idex].sitename[0]+"—预告"+"$"+play_url+base64Encode(adhead(plays[idex].url)))}vod_lists.push(tmp.join("#"))}});VOD.vod_play_url=vod_lists.join("$$$")}catch(e){let img=json.photo.item_list;VOD.vod_name="本片无选集";VOD
.vod_pic=img.length>0?img[0]:""}}catch(e){}
'
,
// 二级:'js:var vod={vod_id:input};let html=request(input);function adhead(url){let hd="https://v.sogou.com";if(!url.startsWith(hd)){url=hd+url}return url}try{let json=JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).detail.itemData;let key=json.dockey;let name=json.name;let zone=json.zone;let score=json.score?json.score:"暂无";let style=json.style;let emcee=json.emcee?"主持:"+json.emcee:json.name;let director=json.director?"导演:"+json.director:name;director=director.replace(/;/g,"\\t");let starring=json.starring?"演员:"+json.starring:"声优:"+json.shengyou;starring=starring.replace(/.*undefined/,"").replace(/;/g,"\\t");let update=json.update_wordstr?json.update_wordstr:"";let tv_station=json.tv_station?json.tv_station:zone;let introduction=json.introduction;let shengyou=json.shengyou;let shows=json.play_from_open_index;let plays=json.play.item_list;if(shows){vod.vod_name=name;vod.vod_area=emcee+","+tv_station;vod.vod_director=director;vod.vod_actor=starring;vod.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");vod.vod_remarks=style+" 评分:"+score+","+update;vod.vod_content=introduction}else{vod.vod_name=name;vod.vod_director=director;vod.vod_actor=starring;vod.vod_pic=jsp.pd(html,"#thumb_img&&img&&src");vod.vod_content=introduction}let tp="&type=json";try{let tabs=[];let lists=[];plays.forEach(function(it){lists.push(it.info);let tbn=it.sitename[0]||it.site.replace(".com","");tbn=tbn.split("").join(" ");tabs.push(tbn)});vod.vod_play_from=tabs.join("$$$");vod_lists=[];play_url=play_url.replace("&play_url=","&type=json&play_url=");lists.forEach(function(item,idex){if(item||shows){if(item&&Array.isArray(item)&&item.length>1){let tmp=item.slice(1).map(function(its){return its.index+"$"+play_url+base64Encode(adhead(its.url))});vod_lists.push(tmp.join("#"))}if(shows){let arr=[];let tmp=[];let zy=shows.item_list[idex];zy.date.forEach(function(date){let day=date.day;for(let j=0;j<day.length;j++){let dayy=day[j][0]>=10?day[j][0]:"0"+day[j][0];let Tdate=date.year+date.month+dayy;arr.push(Tdate)}});for(let k=0;k<arr.length;k++){let url="https://v.sogou.com/vc/eplay?query="+arr[k]+"&date="+arr[k]+"&key="+key+"&st=5&tvsite="+plays[idex].site;tmp.push("第"+arr[k]+"期"+"$"+play_url+base64Encode(adhead(url)))}vod_lists.push(tmp.join("#"))}}else if(plays[idex].site){let tmp=[];if(!plays[idex].flag_list.includes("trailer")){tmp.push(plays[idex].sitename[0]+"$"+play_url+base64Encode(adhead(plays[idex].url)))}else{tmp.push(plays[idex].sitename[0]+"—预告"+"$"+play_url+base64Encode(adhead(plays[idex].url)))}vod_lists.push(tmp.join("#"))}});vod.vod_play_url=vod_lists.join("$$$")}catch(e){let img=json.photo.item_list;vod.vod_name="本片无选集";vod.vod_pic=img.length>0?img[0]:""}}catch(e){}',
搜索
:
''
,
搜索
:
'
js:let d=[];let html=request(input);let jsonA=JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]);jsonA=jsonA.result.longVideo.results;jsonA.forEach(function(it){let name=it.name;let introduction=it.introduction;let pic=it.v_picurl;let url=it.tiny_url;let zone=it.zone;let score=it.score||"暂无";let style=it.style;if(it.play.item_list){let r={};r.title=name.replace(//,"").replace(//,"");r.url="https://v.sogou.com"+url;r.desc=it.list_category.join(",");r.content=introduction;r.pic_url=pic;d.push(r)}});setResult(d);
'
,
...
...
js/酷云77.js
浏览文件 @
ccf041f0
...
...
@@ -29,7 +29,7 @@ var rule = {
一级
:
''
,
一级
:
'
json:data.result;title;videoCover;msg;id
'
,
二级
:
''
,
二级
:
'
js:var d=[];var
vod={vod_id:input};try{let html=request(input);html=JSON.parse(html);let node=html.data;vod={vod_id:node["id"],vod_name:node["videoName"],vod_pic:node["videoCover"],type_name:node["subCategory"],vod_year:node["year"],vod_area:node["area"],vod_remarks:node["msg"],vod_actor:node["actor"],vod_director:node["director"],vod_content:node["brief"].strip()};let tid=input.split("ids=")[1];let listUrl="http://api.kunyu77.com/api.php/provide/videoPlaylist?devid=453CA5D864457C7DB4D0EAA93DE96E66&package=com.sevenVideo.app.android&version=1.8.7&ids="+tid;html=request(listUrl);html=JSON.parse(html);let episodes=html.data.episodes;let playMap={};play_url=play_url.replace("&play_url=","&type=json&play_url=");episodes.forEach(function(ep){let playurls=ep["playurls"];playurls.forEach(function(playurl){source=playurl["playfrom"];if(!playMap.hasOwnProperty(source)){playMap[source]=[]}playMap[source].append(playurl["title"].strip()+"$"+play_url+urlencode(playurl["playurl"]))})});let playFrom=[];let playList=[];Object.keys(playMap).forEach(function(key){playFrom.append(key);playList.append(playMap[key].join("#"))});let vod_play_from=playFrom.join("$$$");let vod_play_url=playList.join("$$$");vod["vod_play_from"]=vod_play_from;vod
["vod_play_url"]=vod_play_url}catch(e){log("获取二级详情页发生错误:"+e.message)}
'
,
二级
:
'
js:var d=[];var
VOD={vod_id:input};try{let html=request(input);html=JSON.parse(html);let node=html.data;VOD={vod_id:node["id"],vod_name:node["videoName"],vod_pic:node["videoCover"],type_name:node["subCategory"],vod_year:node["year"],vod_area:node["area"],vod_remarks:node["msg"],vod_actor:node["actor"],vod_director:node["director"],vod_content:node["brief"].strip()};let tid=input.split("ids=")[1];let listUrl="http://api.kunyu77.com/api.php/provide/videoPlaylist?devid=453CA5D864457C7DB4D0EAA93DE96E66&package=com.sevenVideo.app.android&version=1.8.7&ids="+tid;html=request(listUrl);html=JSON.parse(html);let episodes=html.data.episodes;let playMap={};play_url=play_url.replace("&play_url=","&type=json&play_url=");episodes.forEach(function(ep){let playurls=ep["playurls"];playurls.forEach(function(playurl){source=playurl["playfrom"];if(!playMap.hasOwnProperty(source)){playMap[source]=[]}playMap[source].append(playurl["title"].strip()+"$"+play_url+urlencode(playurl["playurl"]))})});let playFrom=[];let playList=[];Object.keys(playMap).forEach(function(key){playFrom.append(key);playList.append(playMap[key].join("#"))});let vod_play_from=playFrom.join("$$$");let vod_play_url=playList.join("$$$");VOD["vod_play_from"]=vod_play_from;VOD
["vod_play_url"]=vod_play_url}catch(e){log("获取二级详情页发生错误:"+e.message)}
'
,
搜索
:
''
,
搜索
:
'
json:data;videoName;videoCover;msg;id
'
,
}
\ No newline at end of file
py/360二级.js
浏览文件 @
ccf041f0
...
...
@@ -95,5 +95,5 @@ if(tabs.length>0){
base_vod
.
vod_play_from
=
vod_play_from
;
base_vod
.
vod_play_url
=
vod_play_url
;
}
vod
=
base_vod
;
// print(vod);
\ No newline at end of file
VOD
=
base_vod
;
// print(VOD);
\ No newline at end of file
py/优酷二级.js
浏览文件 @
ccf041f0
js
:
var
d
=
[];
var
vod
=
{
vod_id
:
input
};
VOD
=
{
vod_id
:
input
};
let
html
=
request
(
input
);
// print(html);
let
json
=
JSON
.
parse
(
html
);
...
...
@@ -18,10 +18,10 @@ if(/优酷/.test(name)&&video_lists.length>0){//获取简介详情
let
json
=
/__INITIAL_DATA__/
.
test
(
html
)?
html
.
split
(
'
window.__INITIAL_DATA__ =
'
)[
1
].
split
(
'
;
'
)[
0
]:
'
{}
'
;
if
(
json
===
'
{}
'
){
log
(
'
触发了优酷人机验证
'
);
vod
.
vod_remarks
=
ourl
;
vod
.
vod_pic
=
_img
;
vod
.
vod_name
=
video_lists
[
0
].
title
.
replace
(
/
(\d
+
)
/g
,
''
);
vod
.
vod_content
=
'
触发了优酷人机验证,本次未获取详情,但不影响播放(
'
+
ourl
+
'
)
'
;
VOD
.
vod_remarks
=
ourl
;
VOD
.
vod_pic
=
_img
;
VOD
.
vod_name
=
video_lists
[
0
].
title
.
replace
(
/
(\d
+
)
/g
,
''
);
VOD
.
vod_content
=
'
触发了优酷人机验证,本次未获取详情,但不影响播放(
'
+
ourl
+
'
)
'
;
}
else
{
try
{
json
=
JSON
.
parse
(
json
);
...
...
@@ -36,21 +36,22 @@ if(/优酷/.test(name)&&video_lists.length>0){//获取简介详情
let
_title
=
m
.
introTitle
;
// subtitle desc showImgV 是竖着的 showImg横着的
// let uptips = pdfh(html,'.title-info&&Text');
vod
.
vod_pic
=
img
;
vod
.
vod_name
=
_title
;
vod
.
vod_type
=
_type
;
vod
.
vod_remarks
=
_desc
;
vod
.
vod_content
=
JJ
;
VOD
.
vod_pic
=
img
;
VOD
.
vod_name
=
_title
;
VOD
.
vod_type
=
_type
;
VOD
.
vod_remarks
=
_desc
;
VOD
.
vod_content
=
JJ
;
}
catch
(
e
)
{
log
(
'
海报渲染发生错误:
'
+
e
.
message
);
vod
.
vod_remarks
=
name
;
print
(
json
);
VOD
.
vod_remarks
=
name
;
}
}
}
if
(
!
/优酷/
.
test
(
name
)){
vod
.
vod_content
=
'
非自家播放源,暂无视频简介及海报
'
;
vod
.
vod_remarks
=
name
;
VOD
.
vod_content
=
'
非自家播放源,暂无视频简介及海报
'
;
VOD
.
vod_remarks
=
name
;
}
function
adhead
(
url
){
// let hd = 'https://v.sogou.com';
...
...
@@ -76,7 +77,7 @@ video_lists.forEach(function (it){
});
}
});
vod
.
vod_play_from
=
name
;
vod
.
vod_play_url
=
d
.
map
(
function
(
it
){
VOD
.
vod_play_from
=
name
;
VOD
.
vod_play_url
=
d
.
map
(
function
(
it
){
return
it
.
title
+
'
$
'
+
it
.
url
;
}).
join
(
'
#
'
);
\ No newline at end of file
py/搜狗二级.js
浏览文件 @
ccf041f0
js
:
// let d = [];
var
vod
=
{
vod_id
:
input
};
var
VOD
=
{
vod_id
:
input
};
let
html
=
request
(
input
);
function
adhead
(
url
){
...
...
@@ -29,21 +29,21 @@ try {
let
shows
=
json
.
play_from_open_index
;
let
plays
=
json
.
play
.
item_list
;
if
(
shows
)
{
vod
.
vod_name
=
name
;
vod
.
vod_area
=
emcee
+
'
,
'
+
tv_station
;
vod
.
vod_director
=
director
;
vod
.
vod_actor
=
starring
;
vod
.
vod_pic
=
jsp
.
pd
(
html
,
'
#thumb_img&&img&&src
'
);
vod
.
vod_remarks
=
style
+
'
评分:
'
+
score
+
'
,
'
+
update
;
vod
.
vod_content
=
introduction
;
VOD
.
vod_name
=
name
;
VOD
.
vod_area
=
emcee
+
'
,
'
+
tv_station
;
VOD
.
vod_director
=
director
;
VOD
.
vod_actor
=
starring
;
VOD
.
vod_pic
=
jsp
.
pd
(
html
,
'
#thumb_img&&img&&src
'
);
VOD
.
vod_remarks
=
style
+
'
评分:
'
+
score
+
'
,
'
+
update
;
VOD
.
vod_content
=
introduction
;
}
else
{
vod
.
vod_name
=
name
;
//
vod
.vod_area = '';
vod
.
vod_director
=
director
;
vod
.
vod_actor
=
starring
;
vod
.
vod_pic
=
jsp
.
pd
(
html
,
'
#thumb_img&&img&&src
'
);
//
vod
.vod_remarks = style + ' 评分:' + score + ',' + update;
vod
.
vod_content
=
introduction
;
VOD
.
vod_name
=
name
;
//
VOD
.vod_area = '';
VOD
.
vod_director
=
director
;
VOD
.
vod_actor
=
starring
;
VOD
.
vod_pic
=
jsp
.
pd
(
html
,
'
#thumb_img&&img&&src
'
);
//
VOD
.vod_remarks = style + ' 评分:' + score + ',' + update;
VOD
.
vod_content
=
introduction
;
}
let
tp
=
'
&type=json
'
;
try
{
...
...
@@ -55,8 +55,8 @@ try {
tbn
=
tbn
.
split
(
''
).
join
(
'
'
);
// 加空格防止被软件拦截
tabs
.
push
(
tbn
);
});
vod
.
vod_play_from
=
tabs
.
join
(
'
$$$
'
);
// print(
vod
);
VOD
.
vod_play_from
=
tabs
.
join
(
'
$$$
'
);
// print(
VOD
);
// print(lists);
// print(shows);
vod_lists
=
[];
// 拿$$$去填
...
...
@@ -99,10 +99,10 @@ try {
}
});
// print(vod_lists);
vod
.
vod_play_url
=
vod_lists
.
join
(
'
$$$
'
);
VOD
.
vod_play_url
=
vod_lists
.
join
(
'
$$$
'
);
}
catch
(
e
)
{
let
img
=
json
.
photo
.
item_list
;
vod
.
vod_name
=
'
本片无选集
'
;
vod
.
vod_pic
=
img
.
length
>
0
?
img
[
0
]:
''
;
VOD
.
vod_name
=
'
本片无选集
'
;
VOD
.
vod_pic
=
img
.
length
>
0
?
img
[
0
]:
''
;
}
}
catch
(
e
)
{}
\ No newline at end of file
py/爱奇艺二级.js
浏览文件 @
ccf041f0
...
...
@@ -2,7 +2,7 @@ js:
let
d
=
[];
let
html
=
request
(
input
);
let
json
=
JSON
.
parse
(
html
).
data
;
vod
=
{
VOD
=
{
vod_id
:
''
,
vod_url
:
input
,
vod_name
:
''
,
...
...
@@ -15,32 +15,32 @@ vod = {
vod_remarks
:
''
,
vod_pic
:
''
,
};
vod
.
vod_name
=
json
.
name
;
VOD
.
vod_name
=
json
.
name
;
try
{
if
(
json
.
latestOrder
)
{
vod
.
vod_remarks
=
"
类型:
"
+
(
json
.
categories
[
0
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
1
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
2
].
name
||
""
)
+
"
\t
"
+
'
评分:
'
+
(
json
.
score
||
""
)
+
"
\n
更新至:第
"
+
json
.
latestOrder
+
"
集(期)/共
"
+
json
.
videoCount
+
"
集(期)
"
;
VOD
.
vod_remarks
=
"
类型:
"
+
(
json
.
categories
[
0
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
1
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
2
].
name
||
""
)
+
"
\t
"
+
'
评分:
'
+
(
json
.
score
||
""
)
+
"
\n
更新至:第
"
+
json
.
latestOrder
+
"
集(期)/共
"
+
json
.
videoCount
+
"
集(期)
"
;
}
else
{
vod
.
vod_remarks
=
"
类型:
"
+
(
json
.
categories
[
0
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
1
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
2
].
name
||
""
)
+
"
\t
"
+
'
评分:
'
+
(
json
.
score
||
""
)
+
json
.
period
;
VOD
.
vod_remarks
=
"
类型:
"
+
(
json
.
categories
[
0
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
1
].
name
||
""
)
+
"
\t
"
+
(
json
.
categories
[
2
].
name
||
""
)
+
"
\t
"
+
'
评分:
'
+
(
json
.
score
||
""
)
+
json
.
period
;
}
}
catch
(
e
)
{
vod
.
vod_remarks
=
json
.
subtitle
;
VOD
.
vod_remarks
=
json
.
subtitle
;
}
vod
.
vod_area
=
(
json
.
focus
||
""
)
+
"
\n
资费:
"
+
(
json
.
payMark
===
1
?
"
VIP
"
:
"
免费
"
)
+
"
\n
地区:
"
+
((
json
.
areas
)
||
""
);
VOD
.
vod_area
=
(
json
.
focus
||
""
)
+
"
\n
资费:
"
+
(
json
.
payMark
===
1
?
"
VIP
"
:
"
免费
"
)
+
"
\n
地区:
"
+
((
json
.
areas
)
||
""
);
let
vsize
=
'
579_772
'
try
{
vsize
=
json
.
imageSize
[
12
];
}
catch
(
e
)
{}
vod
.
vod_pic
=
json
.
imageUrl
.
replace
(
'
.jpg
'
,
(
'
_
'
+
vsize
+
'
.jpg?caplist=jpg,webp
'
));
// print(
vod
.vod_pic);
vod
.
type_name
=
json
.
categories
.
map
(
function
(
it
){
return
it
.
name
}).
join
(
'
,
'
);
VOD
.
vod_pic
=
json
.
imageUrl
.
replace
(
'
.jpg
'
,
(
'
_
'
+
vsize
+
'
.jpg?caplist=jpg,webp
'
));
// print(
VOD
.vod_pic);
VOD
.
type_name
=
json
.
categories
.
map
(
function
(
it
){
return
it
.
name
}).
join
(
'
,
'
);
if
(
json
.
people
.
main_charactor
){
let
vod_actors
=
[];
json
.
people
.
main_charactor
.
forEach
(
function
(
it
){
vod_actors
.
push
(
it
.
name
);
});
vod
.
vod_actor
=
vod_actors
.
join
(
'
,
'
)
VOD
.
vod_actor
=
vod_actors
.
join
(
'
,
'
)
}
vod
.
vod_content
=
json
.
description
;
VOD
.
vod_content
=
json
.
description
;
let
playlists
=
[]
if
(
json
.
channelId
===
1
||
json
.
channelId
===
5
)
{
playlists
=
[{
...
...
@@ -90,7 +90,7 @@ playlists.forEach(function (it){
url
:
it
.
playUrl
,
});
});
vod
.
vod_play_from
=
'
qiyi
'
;
vod
.
vod_play_url
=
d
.
map
(
function
(
it
){
VOD
.
vod_play_from
=
'
qiyi
'
;
VOD
.
vod_play_url
=
d
.
map
(
function
(
it
){
return
it
.
title
+
'
$
'
+
it
.
url
;
}).
join
(
'
#
'
);
\ No newline at end of file
py/腾讯二级.js
浏览文件 @
ccf041f0
js
:
var
vod
=
{};
var
VOD
=
{};
let
d
=
[];
let
video_list
=
[];
let
video_lists
=
[];
...
...
@@ -16,7 +16,7 @@ var pd = jsp.pd;
//影片信息
try
{
let
json
=
JSON
.
parse
(
html
);
vod
=
{
VOD
=
{
vod_id
:
json
.
c
.
vid
,
vod_url
:
input
,
vod_name
:
json
.
c
.
title
,
...
...
@@ -29,7 +29,7 @@ vod = {
vod_remarks
:
json
.
rec
,
vod_pic
:
urljoin2
(
input
,
json
.
c
.
pic
),
};
// print(
vod
);
// print(
VOD
);
}
catch
(
e
){
log
(
'
解析片名海报等基础信息发生错误:
'
+
e
.
message
)
}
//掏直链
...
...
@@ -110,7 +110,7 @@ if (/get_playsource/.test(input)) {
}
// print(d);
vod
.
vod_play_from
=
'
qq
'
;
vod
.
vod_play_url
=
d
.
map
(
function
(
it
){
VOD
.
vod_play_from
=
'
qq
'
;
VOD
.
vod_play_url
=
d
.
map
(
function
(
it
){
return
it
.
title
+
'
$
'
+
it
.
url
;
}).
join
(
'
#
'
);
\ No newline at end of file
py/芒果二级.js
浏览文件 @
ccf041f0
...
...
@@ -5,7 +5,7 @@ fetch_params.headers['User-Agent'] = UA;
pdfh
=
jsp
.
pdfh
;
pdfa
=
jsp
.
pdfa
;
pd
=
jsp
.
pd
;
vod
=
{};
VOD
=
{};
let
d
=
[];
let
html
=
request
(
input
);
let
json
=
JSON
.
parse
(
html
);
...
...
@@ -41,18 +41,18 @@ try{
let
JJ
=
pdfh
(
html
,
'
.desc&&Text
'
).
split
(
"
简介:
"
)[
1
];
//简介
let
_desc
=
time
;
//更新,时间
vod
.
vod_name
=
pdfh
(
html
,
'
.vt-txt&&Text
'
);
vod
.
type_name
=
pdfh
(
html
,
'
p:eq(0)&&Text
'
).
substr
(
0
,
6
);
vod
.
vod_area
=
pdfh
(
html
,
'
p:eq(1)&&Text
'
);
vod
.
vod_actor
=
actor
;
vod
.
vod_director
=
director
;
vod
.
vod_remarks
=
_desc
;
vod
.
vod_pic
=
_img
;
vod
.
vod_content
=
JJ
;
VOD
.
vod_name
=
pdfh
(
html
,
'
.vt-txt&&Text
'
);
VOD
.
type_name
=
pdfh
(
html
,
'
p:eq(0)&&Text
'
).
substr
(
0
,
6
);
VOD
.
vod_area
=
pdfh
(
html
,
'
p:eq(1)&&Text
'
);
VOD
.
vod_actor
=
actor
;
VOD
.
vod_director
=
director
;
VOD
.
vod_remarks
=
_desc
;
VOD
.
vod_pic
=
_img
;
VOD
.
vod_content
=
JJ
;
}
catch
(
e
){
log
(
'
获取影片信息发生错误:
'
+
e
.
message
);
}
// print(
vod
);
// print(
VOD
);
function
getRjpg
(
imgUrl
,
xs
){
xs
=
xs
||
3
;
let
picSize
=
/jpg_/
.
test
(
imgUrl
)?
imgUrl
.
split
(
'
jpg_
'
)[
1
].
split
(
'
.
'
)[
0
]:
false
;
...
...
@@ -95,8 +95,8 @@ if (json.data.total === 1 && json.data.list.length===1) {
}
else
{
print
(
input
+
'
暂无片源
'
);
}
vod
.
vod_play_from
=
'
mgtv
'
;
vod
.
vod_play_url
=
d
.
map
(
function
(
it
){
VOD
.
vod_play_from
=
'
mgtv
'
;
VOD
.
vod_play_url
=
d
.
map
(
function
(
it
){
return
it
.
title
+
'
$
'
+
it
.
url
;
}).
join
(
'
#
'
);
setResult
(
d
);
\ No newline at end of file
py/酷云二级.js
浏览文件 @
ccf041f0
js
:
var
d
=
[];
var
vod
=
{
vod_id
:
input
};
var
VOD
=
{
vod_id
:
input
};
// print(input);
try
{
let
html
=
request
(
input
);
html
=
JSON
.
parse
(
html
);
let
node
=
html
.
data
;
vod
=
{
VOD
=
{
"
vod_id
"
:
node
[
'
id
'
],
"
vod_name
"
:
node
[
'
videoName
'
],
"
vod_pic
"
:
node
[
'
videoCover
'
],
...
...
@@ -18,7 +18,7 @@ vod = {
"
vod_director
"
:
node
[
'
director
'
],
"
vod_content
"
:
node
[
'
brief
'
].
strip
()
}
// print(
vod
);
// print(
VOD
);
let
tid
=
input
.
split
(
'
ids=
'
)[
1
];
let
listUrl
=
'
http://api.kunyu77.com/api.php/provide/videoPlaylist?devid=453CA5D864457C7DB4D0EAA93DE96E66&package=com.sevenVideo.app.android&version=1.8.7&ids=
'
+
tid
;
html
=
request
(
listUrl
);
...
...
@@ -48,9 +48,9 @@ Object.keys(playMap).forEach(function (key){
// print(playList);
let
vod_play_from
=
playFrom
.
join
(
'
$$$
'
);
let
vod_play_url
=
playList
.
join
(
'
$$$
'
);
vod
[
'
vod_play_from
'
]
=
vod_play_from
;
vod
[
'
vod_play_url
'
]
=
vod_play_url
;
// print(
vod
);
VOD
[
'
vod_play_from
'
]
=
vod_play_from
;
VOD
[
'
vod_play_url
'
]
=
vod_play_url
;
// print(
VOD
);
}
catch
(
e
)
{
log
(
'
获取二级详情页发生错误:
'
+
e
.
message
);
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录