Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zzzlllmmm1
dr_py
提交
8a590db7
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,发现更多精彩内容 >>
提交
8a590db7
编写于
10月 06, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
改了一些源
上级
2f0156d1
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
41 addition
and
14 deletion
+41
-14
js/优酷.js
js/优酷.js
+0
-0
js/菜狗.js
js/菜狗.js
+3
-2
js/酷云77.js
js/酷云77.js
+2
-1
libs/drpy.js
libs/drpy.js
+20
-4
py/搜狗二级.js
py/搜狗二级.js
+9
-4
py/搜狗搜索.js
py/搜狗搜索.js
+1
-1
py/酷云二级.js
py/酷云二级.js
+6
-2
未找到文件。
js/优酷.js
浏览文件 @
8a590db7
此差异已折叠。
点击以展开。
js/菜狗.js
浏览文件 @
8a590db7
...
@@ -24,8 +24,8 @@ var rule = {
...
@@ -24,8 +24,8 @@ var rule = {
// 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
// 推荐:'.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: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:
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("$$$");let vod_lists=[];if(typeof play_url==="undefined"){var play_url=""}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){print("发生了错误:"+e.message)
}
'
,
// 二级:'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: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:let d=[];let html=request(input);let jsonA=JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]);
print(jsonA);
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);
'
,
}
}
\ No newline at end of file
js/酷云77.js
浏览文件 @
8a590db7
...
@@ -29,7 +29,7 @@ var rule = {
...
@@ -29,7 +29,7 @@ var rule = {
一级
:
''
,
一级
:
''
,
一级
:
'
json:data.result;title;videoCover;msg;id
'
,
一级
:
'
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=[];
VOD={vod_id:input};try{let html=request(input);print(html);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={};if(typeof play_url==="undefined"){var play_url=""}play_url=play_url.replace("&play_url=","&type=json&play_url=");episodes.forEach(function(ep){let playurls=ep["playurls"];playurls.forEach(function(playurl){let
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
'
,
搜索
:
'
json:data;videoName;videoCover;msg;id
'
,
}
}
\ No newline at end of file
libs/drpy.js
浏览文件 @
8a590db7
...
@@ -34,6 +34,7 @@ let rule = {};
...
@@ -34,6 +34,7 @@ let rule = {};
* 2.import es6py.js但是里面的函数没有被装载进来.比如drpy规则报错setResult2 is undefiend
* 2.import es6py.js但是里面的函数没有被装载进来.比如drpy规则报错setResult2 is undefiend
* 3.无法重复导入cheerio(怎么解决drpy和parseTag里都需要导入cheerio的问题) 无法在副文件导入cheerio (现在是全部放在drpy一个文件里了,凑合解决?)
* 3.无法重复导入cheerio(怎么解决drpy和parseTag里都需要导入cheerio的问题) 无法在副文件导入cheerio (现在是全部放在drpy一个文件里了,凑合解决?)
* 4.有个错误不知道哪儿来的 executeScript: com.quickjs.JSObject$Undefined cannot be cast to java.lang.String 在 点击选集播放打印init_test_end后面打印
* 4.有个错误不知道哪儿来的 executeScript: com.quickjs.JSObject$Undefined cannot be cast to java.lang.String 在 点击选集播放打印init_test_end后面打印
* 5.需要实现 stringify 函数,比起JSON.stringify函数,它会原封不动保留中文不会编码unicode
* todo: jsp:{pdfa,pdfh,pd},json:{pdfa,pdfh,pd},jq:{pdfa,pdfh,pd}
* todo: jsp:{pdfa,pdfh,pd},json:{pdfa,pdfh,pd},jq:{pdfa,pdfh,pd}
* * 电脑看日志调试
* * 电脑看日志调试
adb tcpip 5555
adb tcpip 5555
...
@@ -313,8 +314,16 @@ function urlencode (str) {
...
@@ -313,8 +314,16 @@ function urlencode (str) {
return
encodeURIComponent
(
str
).
replace
(
/!/g
,
'
%21
'
).
replace
(
/'/g
,
'
%27
'
).
replace
(
/
\(
/g
,
'
%28
'
).
return
encodeURIComponent
(
str
).
replace
(
/!/g
,
'
%21
'
).
replace
(
/'/g
,
'
%27
'
).
replace
(
/
\(
/g
,
'
%28
'
).
replace
(
/
\)
/g
,
'
%29
'
).
replace
(
/
\*
/g
,
'
%2A
'
).
replace
(
/%20/g
,
'
+
'
);
replace
(
/
\)
/g
,
'
%29
'
).
replace
(
/
\*
/g
,
'
%2A
'
).
replace
(
/%20/g
,
'
+
'
);
}
}
function
base64Encode
(
text
){
return
text
}
globalThis
.
VODS
=
[];
// 一级或者搜索需要的数据列表
globalThis
.
VODS
=
[];
// 一级或者搜索需要的数据列表
globalThis
.
VOD
=
{};
// 二级的单个数据
globalThis
.
VOD
=
{};
// 二级的单个数据
globalThis
.
encodeUrl
=
urlencode
;
globalThis
.
urlencode
=
urlencode
;
/**
/**
...
@@ -703,11 +712,15 @@ function require(url){
...
@@ -703,11 +712,15 @@ function require(url){
*/
*/
function
request
(
url
,
obj
){
function
request
(
url
,
obj
){
if
(
typeof
(
obj
)
===
'
undefined
'
||!
obj
||
obj
===
{}){
if
(
typeof
(
obj
)
===
'
undefined
'
||!
obj
||
obj
===
{}){
let
headers
=
{
'
User-Agent
'
:
MOBILE_UA
,
'
Referer
'
:
getHome
(
url
),
};
if
(
rule
.
headers
){
Object
.
assign
(
headers
,
rule
.
headers
);
}
obj
=
{
obj
=
{
headers
:{
headers
:
headers
'
User-Agent
'
:
MOBILE_UA
,
'
Referer
'
:
getHome
(
url
),
}
}
}
}
else
{
}
else
{
let
headers
=
obj
.
headers
||
{};
let
headers
=
obj
.
headers
||
{};
...
@@ -1169,6 +1182,7 @@ function searchParse(searchObj) {
...
@@ -1169,6 +1182,7 @@ function searchParse(searchObj) {
let
links
=
p
[
4
].
split
(
'
+
'
).
map
(
p4
=>
{
let
links
=
p
[
4
].
split
(
'
+
'
).
map
(
p4
=>
{
return
!
rule
.
detailUrl
?
_pd
(
it
,
p4
,
MY_URL
):
_pdfh
(
it
,
p4
)
return
!
rule
.
detailUrl
?
_pd
(
it
,
p4
,
MY_URL
):
_pdfh
(
it
,
p4
)
});
});
let
link
=
links
.
join
(
'
$
'
);
let
link
=
links
.
join
(
'
$
'
);
let
ob
=
{
let
ob
=
{
'
vod_id
'
:
link
,
'
vod_id
'
:
link
,
...
@@ -1371,6 +1385,7 @@ function playParse(playObj){
...
@@ -1371,6 +1385,7 @@ function playParse(playObj){
lazy_play
=
common_play
;
lazy_play
=
common_play
;
}
else
if
(
rule
.
play_parse
&&
rule
.
lazy
&&
typeof
(
rule
.
lazy
)
===
'
string
'
){
}
else
if
(
rule
.
play_parse
&&
rule
.
lazy
&&
typeof
(
rule
.
lazy
)
===
'
string
'
){
try
{
try
{
print
(
'
开始执行js免嗅=>
'
+
rule
.
lazy
);
eval
(
rule
.
lazy
.
replace
(
'
js:
'
).
trim
());
eval
(
rule
.
lazy
.
replace
(
'
js:
'
).
trim
());
lazy_play
=
typeof
(
input
)
===
'
object
'
?
input
:{
lazy_play
=
typeof
(
input
)
===
'
object
'
?
input
:{
parse
:
1
,
parse
:
1
,
...
@@ -1378,6 +1393,7 @@ function playParse(playObj){
...
@@ -1378,6 +1393,7 @@ function playParse(playObj){
url
:
input
url
:
input
};
};
}
catch
(
e
)
{
}
catch
(
e
)
{
print
(
'
js免嗅错误:
'
+
e
.
message
);
lazy_play
=
common_play
;
lazy_play
=
common_play
;
}
}
}
else
{
}
else
{
...
...
py/搜狗二级.js
浏览文件 @
8a590db7
js
:
js
:
// let d = [];
// let d = [];
var
VOD
=
{
vod_id
:
input
};
VOD
=
{
vod_id
:
input
};
let
html
=
request
(
input
);
let
html
=
request
(
input
);
function
adhead
(
url
){
function
adhead
(
url
){
...
@@ -59,7 +59,10 @@ try {
...
@@ -59,7 +59,10 @@ try {
// print(VOD);
// print(VOD);
// print(lists);
// print(lists);
// print(shows);
// print(shows);
vod_lists
=
[];
// 拿$$$去填
let
vod_lists
=
[];
// 拿$$$去填
if
(
typeof
(
play_url
)
===
'
undefined
'
){
var
play_url
=
''
;
}
play_url
=
play_url
.
replace
(
'
&play_url=
'
,
'
&type=json&play_url=
'
);
play_url
=
play_url
.
replace
(
'
&play_url=
'
,
'
&type=json&play_url=
'
);
lists
.
forEach
(
function
(
item
,
idex
){
// item是个json列表
lists
.
forEach
(
function
(
item
,
idex
){
// item是个json列表
if
(
item
||
shows
)
{
// 动漫,电视剧
if
(
item
||
shows
)
{
// 动漫,电视剧
...
@@ -105,4 +108,6 @@ try {
...
@@ -105,4 +108,6 @@ try {
VOD
.
vod_name
=
'
本片无选集
'
;
VOD
.
vod_name
=
'
本片无选集
'
;
VOD
.
vod_pic
=
img
.
length
>
0
?
img
[
0
]:
''
;
VOD
.
vod_pic
=
img
.
length
>
0
?
img
[
0
]:
''
;
}
}
}
catch
(
e
)
{}
}
catch
(
e
)
{
\ No newline at end of file
print
(
'
发生了错误:
'
+
e
.
message
);
}
\ No newline at end of file
py/搜狗搜索.js
浏览文件 @
8a590db7
...
@@ -3,7 +3,7 @@ let d=[];
...
@@ -3,7 +3,7 @@ let d=[];
let
html
=
request
(
input
);
let
html
=
request
(
input
);
// print(html);
// print(html);
let
jsonA
=
JSON
.
parse
(
html
.
match
(
/INITIAL_STATE.*
?(
{.*}
)
;/
)[
1
]);
let
jsonA
=
JSON
.
parse
(
html
.
match
(
/INITIAL_STATE.*
?(
{.*}
)
;/
)[
1
]);
//
print(jsonA);
print
(
jsonA
);
jsonA
=
jsonA
.
result
.
longVideo
.
results
;
jsonA
=
jsonA
.
result
.
longVideo
.
results
;
jsonA
.
forEach
(
function
(
it
){
jsonA
.
forEach
(
function
(
it
){
let
name
=
it
.
name
;
let
name
=
it
.
name
;
...
...
py/酷云二级.js
浏览文件 @
8a590db7
js
:
js
:
var
d
=
[];
var
d
=
[];
var
VOD
=
{
vod_id
:
input
};
VOD
=
{
vod_id
:
input
};
// print(input);
// print(input);
try
{
try
{
let
html
=
request
(
input
);
let
html
=
request
(
input
);
print
(
html
);
html
=
JSON
.
parse
(
html
);
html
=
JSON
.
parse
(
html
);
let
node
=
html
.
data
;
let
node
=
html
.
data
;
VOD
=
{
VOD
=
{
...
@@ -25,11 +26,14 @@ html = request(listUrl);
...
@@ -25,11 +26,14 @@ html = request(listUrl);
html
=
JSON
.
parse
(
html
);
html
=
JSON
.
parse
(
html
);
let
episodes
=
html
.
data
.
episodes
;
let
episodes
=
html
.
data
.
episodes
;
let
playMap
=
{};
let
playMap
=
{};
if
(
typeof
(
play_url
)
===
'
undefined
'
){
var
play_url
=
''
;
}
play_url
=
play_url
.
replace
(
'
&play_url=
'
,
'
&type=json&play_url=
'
);
play_url
=
play_url
.
replace
(
'
&play_url=
'
,
'
&type=json&play_url=
'
);
episodes
.
forEach
(
function
(
ep
){
episodes
.
forEach
(
function
(
ep
){
let
playurls
=
ep
[
'
playurls
'
];
let
playurls
=
ep
[
'
playurls
'
];
playurls
.
forEach
(
function
(
playurl
){
playurls
.
forEach
(
function
(
playurl
){
source
=
playurl
[
'
playfrom
'
];
let
source
=
playurl
[
'
playfrom
'
];
if
(
!
playMap
.
hasOwnProperty
(
source
)){
if
(
!
playMap
.
hasOwnProperty
(
source
)){
playMap
[
source
]
=
[];
playMap
[
source
]
=
[];
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录