Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
muziyicn
dr_py
提交
99e75b64
dr_py
项目概览
muziyicn
/
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,发现更多精彩内容 >>
提交
99e75b64
编写于
9月 14, 2022
作者:
晚风拂柳颜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除 搜狗二级.min.js
上级
07fdd324
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
2 deletion
+0
-2
py/搜狗二级.min.js
py/搜狗二级.min.js
+0
-2
未找到文件。
py/搜狗二级.min.js
已删除
100644 → 0
浏览文件 @
07fdd324
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
){}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录