Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
peater12
dr_py
提交
bacfcfd3
dr_py
项目概览
peater12
/
dr_py
落后 Fork 源项目 2 个版本
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,发现更多精彩内容 >>
提交
bacfcfd3
编写于
10月 15, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加俩个源,优化免嗅。编码搞不定
上级
8a75777b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
4 deletion
+66
-4
js/RP影视.js
js/RP影视.js
+22
-0
js/version.txt
js/version.txt
+1
-1
js/有声小说吧.js
js/有声小说吧.js
+23
-0
libs/drpy.js
libs/drpy.js
+19
-2
libs/drpy.min.js
libs/drpy.min.js
+1
-1
未找到文件。
js/RP影视.js
0 → 100644
浏览文件 @
bacfcfd3
var
rule
=
{
title
:
'
RP影视
'
,
host
:
'
https://mac.rp123.top
'
,
url
:
'
/vodshow/fyclass--------fypage---/
'
,
searchUrl
:
'
/vodsearch/**----------fypage---/
'
,
searchable
:
2
,
quickSearch
:
0
,
filterable
:
0
,
headers
:{
'
User-Agent
'
:
'
MOBILE_UA
'
,},
class_name
:
'
电影&电视剧&综艺&动漫&纪录片&4K专区
'
,
class_url
:
'
1&2&3&4&35&40
'
,
play_parse
:
true
,
lazy
:
''
,
limit
:
6
,
推荐
:
'
.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href
'
,
double
:
true
,
// 推荐内容是否双层定位
一级
:
'
body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href
'
,
二级
:{
"
title
"
:
"
h1&&Text;.module-info-tag&&Text
"
,
"
img
"
:
"
.lazyload&&data-original
"
,
"
desc
"
:
"
.module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text
"
,
"
content
"
:
"
.module-info-introduction&&Text
"
,
"
tabs
"
:
"
.module-tab-item.tab-item
"
,
"
lists
"
:
"
.module-play-list:eq(#id) a
"
},
搜索
:
'
body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text
'
,
}
\ No newline at end of file
js/version.txt
浏览文件 @
bacfcfd3
3.9.7beta2
\ No newline at end of file
3.9.7beta3
\ No newline at end of file
js/有声小说吧.js
0 → 100644
浏览文件 @
bacfcfd3
var
rule
=
{
title
:
'
有声小说吧
'
,
编码
:
'
gb2312
'
,
host
:
'
http://m.ysxs8.vip
'
,
url
:
'
/downlist/fyclass_fypage.html
'
,
searchUrl
:
'
/search.asp?page=fypage&searchword=**&searchtype=-1
'
,
searchable
:
2
,
quickSearch
:
0
,
headers
:{
'
User-Agent
'
:
'
MOBILE_UA
'
},
timeout
:
5000
,
class_name
:
'
网络玄幻&恐怖悬疑&传统武侠&都市言情&官场刑侦&历史军事&探险盗墓&职场商战&明朝那些事儿&评书下载&相声戏曲&人物传记&广播剧&百家讲坛&外语读物&有声文学&儿童读物&管理营销
'
,
class_url
:
'
r52&r17&r12&r13&r14&r15&r45&r81&r36&r3&r7&r16&r18&r32&r35&r41&r4&r6
'
,
play_parse
:
true
,
lazy
:
''
,
limit
:
6
,
double
:
true
,
推荐
:
'
.list-ul;a;.list-name&&Text;img&&data-original;.module-slide-author&&Text;a&&href
'
,
一级
:
'
.book-ol&&li;h4&&Text;img&&data-original;.book-submeta&&Text;a&&href
'
,
二级
:{
title
:
'
h2&&Text
'
,
img
:
'
.bookimg&&img&&data-original
'
,
desc
:
'
.book-rand-a:eq(0)&&Text;.book-rand-a:eq(1)&&Text;.book-rand-a:eq(2)&&Text;.book-rand-a:eq(3)&&Text
'
,
content
:
'
.book_intro&&Text
'
,
tabs
:
'
.list-contitle&&h3
'
,
lists
:
'
#playlist:eq(#id)&&ul&&li
'
},
搜索
:
'
*
'
,
}
libs/drpy.js
浏览文件 @
bacfcfd3
...
...
@@ -850,6 +850,9 @@ function request(url,obj){
}
obj
.
headers
=
headers
;
}
if
(
rule
.
encoding
&&
rule
.
encoding
!==
'
utf-8
'
){
obj
.
headers
[
"
content-type
"
]
=
"
text/html; charset=
"
+
rule
.
encoding
;
}
console
.
log
(
JSON
.
stringify
(
obj
.
headers
));
if
(
typeof
(
obj
.
headers
.
body
)
!=
'
undefined
'
&&
obj
.
headers
.
body
&&
typeof
(
obj
.
headers
.
body
)
===
'
string
'
){
let
data
=
{};
...
...
@@ -1514,6 +1517,19 @@ function detailParse(detailObj){
})
}
/**
* 判断是否需要解析
* @param url
* @returns {number|number}
*/
function
tellIsJx
(
url
){
try
{
let
is_vip
=
!
/
\.(
m3u8|mp4|m4a
)
$/
.
test
(
url
.
split
(
'
?
'
)[
0
])
&&
是否正版
(
url
);
return
is_vip
?
1
:
0
}
catch
(
e
)
{
return
1
}
}
/**
* 选集播放点击事件解析
* @param playObj
...
...
@@ -1531,7 +1547,8 @@ function playParse(playObj){
var
input
=
MY_URL
;
//注入给免嗅js
let
common_play
=
{
parse
:
1
,
url
:
input
url
:
input
,
jx
:
tellIsJx
(
input
)
};
let
lazy_play
;
if
(
!
rule
.
play_parse
||!
rule
.
lazy
){
...
...
@@ -1543,7 +1560,7 @@ function playParse(playObj){
eval
(
lazy_code
);
lazy_play
=
typeof
(
input
)
===
'
object
'
?
input
:{
parse
:
1
,
jx
:
1
,
jx
:
tellIsJx
(
input
)
,
url
:
input
};
}
catch
(
e
)
{
...
...
libs/drpy.min.js
浏览文件 @
bacfcfd3
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录