Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
dr_py
提交
34ff52ea
dr_py
项目概览
言程序plus
/
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,发现更多精彩内容 >>
提交
34ff52ea
编写于
10月 04, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复正版源一级js执行结果
上级
51631ae1
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
24 addition
and
14 deletion
+24
-14
js/version.txt
js/version.txt
+1
-1
js/奇珍异兽.js
js/奇珍异兽.js
+4
-2
libs/drpy.js
libs/drpy.js
+4
-4
libs/es6py.js
libs/es6py.js
+14
-6
py/爱奇艺二级.js
py/爱奇艺二级.js
+1
-1
未找到文件。
js/version.txt
浏览文件 @
34ff52ea
3.7.19beta6
\ No newline at end of file
3.7.19beta7
\ No newline at end of file
js/奇珍异兽.js
浏览文件 @
34ff52ea
...
...
@@ -32,7 +32,8 @@ var rule = {
// 一级:'json:.data.list;.name;.imageUrl;.playUrl;.latestOrder',
// 二级:{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){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
libs/drpy.js
浏览文件 @
34ff52ea
import
'
https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/es6py.js
'
;
// import {是否正版,urlDeal,setResult,setResult2,setHomeResult,maoss,urlencode} from 'http://192.168.10.103:5705/libs/es6py.js';
// import 'http://192.168.10.103:5705/libs/es6py.js';
import
cheerio
from
'
https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/cheerio.min.js
'
;
// import cheerio from 'http://192.168.10.103:5705/libs/cheerio.min.js';
// import {parseTags,urljoin,stringify} from 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/parseTags.js';
// import {parseTags,urljoin,stringify} from 'http://192.168.10.103:5705/libs/parseTags.js';
import
'
https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/drT.js
'
;
// import 'http://192.168.10.103:5705/libs/drT.js';
import
muban
from
'
https://gitcode.net/qq_32394351/dr_py/-/raw/master/js/模板.js
'
;
...
...
@@ -55,8 +54,6 @@ const OCR_API = 'http://cms.nokia.press/parse/ocr';//ocr在线识别接口
if
(
typeof
(
MY_URL
)
===
'
undefined
'
){
var
MY_URL
;
// 全局注入变量,pd函数需要
}
var
VODS
=
[];
// 一级或者搜索需要的数据列表
var
vod
=
{};
//二级用单个影片详情
var
RKEY
;
// 源的唯一标识
var
fetch
;
var
print
;
...
...
@@ -489,6 +486,7 @@ function request(url,obj){
obj
.
buffer
=
2
;
delete
obj
.
toBase64
}
console
.
log
(
'
request:
'
+
url
);
let
res
=
req
(
url
,
obj
);
let
html
=
res
.
content
||
''
;
if
(
obj
.
withHeaders
){
...
...
@@ -810,6 +808,7 @@ function categoryParse(cateObj) {
const
TYPE
=
'
cate
'
;
var
input
=
MY_URL
;
const
MY_PAGE
=
cateObj
.
pg
;
var
desc
=
''
;
eval
(
p
.
trim
().
replace
(
'
js:
'
,
''
));
d
=
VODS
;
}
else
{
...
...
@@ -977,6 +976,7 @@ function detailParse(detailObj){
const
TYPE
=
'
detail
'
;
var
input
=
MY_URL
;
eval
(
p
.
trim
().
replace
(
'
js:
'
,
''
));
console
.
log
(
JSON
.
stringify
(
vod
));
}
else
if
(
p
&&
typeof
(
p
)
===
'
object
'
){
if
(
!
html
){
html
=
getHtml
(
MY_URL
);
...
...
libs/es6py.js
浏览文件 @
34ff52ea
...
...
@@ -132,13 +132,12 @@ function urlDeal(vipUrl){
}
return
vipUrl
}
export
function
setResult
(
d
){
function
setResult
(
d
){
if
(
!
Array
.
isArray
(
d
)){
return
[]
}
if
(
typeof
VODS
===
'
undefined
'
){
VODS
=
[];
}
// console.log(JSON.stringify(d));
d
.
forEach
(
function
(
it
){
let
obj
=
{
vod_id
:
it
.
url
||
''
,
...
...
@@ -229,12 +228,21 @@ function maoss(jxurl, ref, key) {
}
}
export
function
urlencode
(
str
)
{
function
urlencode
(
str
)
{
str
=
(
str
+
''
).
toString
();
return
encodeURIComponent
(
str
).
replace
(
/!/g
,
'
%21
'
).
replace
(
/'/g
,
'
%27
'
).
replace
(
/
\(
/g
,
'
%28
'
).
replace
(
/
\)
/g
,
'
%29
'
).
replace
(
/
\*
/g
,
'
%2A
'
).
replace
(
/%20/g
,
'
+
'
);
}
export
var
encodeUrl
=
urlencode
;
globalThis
.
VODS
=
[];
// 一级或者搜索需要的数据列表
globalThis
.
encodeUrl
=
urlencode
;
globalThis
.
urlencode
=
urlencode
;
globalThis
.
是否正版
=
是否正版
;
globalThis
.
urlDeal
=
urlDeal
;
globalThis
.
setResult
=
setResult
;
globalThis
.
setResult2
=
setResult2
;
globalThis
.
setHomeResult
=
setHomeResult
;
globalThis
.
maoss
=
maoss
;
globalThis
.
urljoin2
=
joinUrl
;
// export default {
// 是否正版:是否正版,
...
...
py/爱奇艺二级.js
浏览文件 @
34ff52ea
...
...
@@ -34,7 +34,7 @@ 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
){
vod_actors
=
[];
let
vod_actors
=
[];
json
.
people
.
main_charactor
.
forEach
(
function
(
it
){
vod_actors
.
push
(
it
.
name
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录