Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
没毛的刷子
dr_py
提交
72b581f4
dr_py
项目概览
没毛的刷子
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
1
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,发现更多精彩内容 >>
提交
72b581f4
编写于
10月 23, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
升级了
上级
85f89b82
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
65 addition
and
4 deletion
+65
-4
base/rules.db
base/rules.db
+0
-0
js/DJ音乐.js
js/DJ音乐.js
+36
-0
js/rules.py
js/rules.py
+3
-3
js/version.txt
js/version.txt
+1
-1
js/饭团.js
js/饭团.js
+24
-0
readme.md
readme.md
+1
-0
未找到文件。
base/rules.db
浏览文件 @
72b581f4
无法预览此类型文件
js/DJ音乐.js
0 → 100644
浏览文件 @
72b581f4
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
// 道长 drpy安卓本地搭建说明 https://gitcode.net/qq_32394351/dr_py/-/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
// 道长 drpy写源 模板规则说明 https://gitcode.net/supertlo/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
// 道长 drpy写源 套模模版 https://gitcode.net/qq_32394351/dr_py/-/raw/master/js/%E6%A8%A1%E6%9D%BF.js
// 道长 drpy写源 影片教程 http://101.34.67.237:5244/%E6%95%99%E8%82%B2/drpy
// 道长 drpy写源 影片教程(m3u8切片) https://freedrpy.run.goorm.io/txt/jc/playlist.m3u8
// 海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
// Pluto Player官方TG https://t.me/PlutoPlayer
// Pluto Player官方TG https://t.me/PlutoPlayerChannel
// pluto 播放正常
// 俊老的壳或PythonBox 在rules新增底下设定 即可正常播放
// {"host":"www.djuu.com","rule":["mp4.djuu.com"]},
var
rule
=
{
title
:
'
DJ音乐
'
,
host
:
'
http://www.djuu.com
'
,
homeUrl
:
'
/exclusive/115_1.html
'
,
//网站的首页链接,可以是完整路径或者相对路径,用于分类获取和推荐获取 fyclass是分类标签 fypage是页数
url
:
'
/djlist/fyclass_fypage.html
'
,
searchUrl
:
'
/search?musicname=**
'
,
searchable
:
2
,
quickSearch
:
0
,
class_parse
:
'
#top_banner_bg div;a&&Text;a&&href;/djlist/(
\\
d+)_1.html
'
,
headers
:{
'
User-Agent
'
:
'
PC_UA
'
},
timeout
:
5000
,
play_parse
:
true
,
lazy
:
''
,
limit
:
6
,
double
:
false
,
推荐
:
'
*
'
,
一级
:
'
.list_musiclist tr:gt(0);a&&title;img&&src;.cor999:eq(1)&&Text;a&&href
'
,
二级
:
'
*
'
,
搜索
:
'
*;*;*;.sc_1&&Text;*
'
,
}
js/rules.py
浏览文件 @
72b581f4
...
...
@@ -113,7 +113,7 @@ def getRules(path='cache',js_mode=0):
js
=
js_path
[
i
]
with
open
(
js
,
encoding
=
'utf-8'
)
as
f
:
code
=
f
.
read
()
new_code
=
'var muban = JSON.parse(JSON.stringify(mubanDict));
\n
'
+
code
.
replace
(
'
rule'
,
f
'
rule
{
i
}
'
,
1
)
+
f
'
\n
if (rule
{
i
}
.模板 && muban.hasOwnProperty(rule
{
i
}
.模板))'
+
'{'
+
f
'rule
{
i
}
= Object.assign(muban[rule
{
i
}
.模板], rule
{
i
}
);'
+
'}'
new_code
=
'var muban = JSON.parse(JSON.stringify(mubanDict));
\n
'
+
code
.
replace
(
'
var rule'
,
f
'var
rule
{
i
}
'
,
1
)
+
f
'
\n
if (rule
{
i
}
.模板 && muban.hasOwnProperty(rule
{
i
}
.模板))'
+
'{'
+
f
'rule
{
i
}
= Object.assign(muban[rule
{
i
}
.模板], rule
{
i
}
);'
+
'}'
# new_code = ''+code.replace('rule',f'rule{i}',1)
codes
.
append
(
new_code
)
newCodes
=
before
+
'
\n
'
+
'
\n
'
.
join
(
codes
)
...
...
@@ -145,8 +145,8 @@ def getRules(path='cache',js_mode=0):
# print(new_rule_list)
rules
=
{
'list'
:
new_rule_list
,
'count'
:
len
(
rule_list
)}
except
Exception
as
e
:
logger
.
info
(
f
'装载js内置源列表失败,置空内置源'
)
rules
=
[]
logger
.
info
(
f
'装载js内置源列表失败,置空内置源
:
{
e
}
'
)
rules
=
{
'list'
:
[],
'count'
:
0
}
logger
.
info
(
f
'自动配置装载耗时:
{
get_interval
(
t1
)
}
毫秒'
)
return
rules
...
...
js/version.txt
浏览文件 @
72b581f4
3.9.15beta4
\ No newline at end of file
3.9.15beta5
\ No newline at end of file
js/饭团.js
0 → 100644
浏览文件 @
72b581f4
var
rule
=
{
title
:
'
饭团
'
,
host
:
'
https://fositv.com
'
,
// homeUrl:'/',
url
:
'
/vodtype/fyclass-fypage.html
'
,
searchUrl
:
'
/vodsearch/-------------.html?wd=**
'
,
searchable
:
2
,
//是否启用全局搜索,
quickSearch
:
0
,
//是否启用快速搜索,
filterable
:
0
,
//是否启用分类筛选,
headers
:{
//网站的请求头,完整支持所有的,常带ua和cookies
'
User-Agent
'
:
'
MOBILE_UA
'
,
// "Cookie": "searchneed=ok"
},
class_parse
:
'
.dropdown-box&&ul&&li;a&&Text;a&&href;.*/(.*?).html
'
,
play_parse
:
true
,
lazy
:
''
,
limit
:
6
,
推荐
:
'
.myui-panel_bd;&&li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href
'
,
double
:
true
,
// 推荐内容是否双层定位
一级
:
'
.myui-vodlist&&li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href
'
,
二级
:{
"
title
"
:
"
.text-fff&&Text
"
,
"
img
"
:
"
.lazyload&&data-original
"
,
"
desc
"
:
"
.col-pd.text-collapse&&p:eq(1)&&Text; .col-pd.text-collapse&&p:eq(2)&&Text; .col-pd.text-collapse&&p:eq(0)&&Text
"
,
"
content
"
:
"
.sketch&&Text
"
,
"
tabs
"
:
"
.nav&&li
"
,
"
lists
"
:
"
.myui-content__list:eq(#id) li
"
},
搜索
:
'
.myui-panel_bd&&ul&&li;h4&&Text;lazyload&&data-original;a&&href
'
,
}
\ No newline at end of file
readme.md
浏览文件 @
72b581f4
...
...
@@ -50,6 +50,7 @@
###### 2022/10/23
-
[X] 新增几个源 包括虎牙直播
-
[X] 设置中心增加仙人模式开关(自动识别不同设备返回不同的drpy接口,关闭的话只会走drpy.min.js)
-
[X] 3.9.15beta5 修复后台管理无法进入的bug,规定js源必须包含 var rule字符,不然不识别。中间仅有一个空格
###### 2022/10/22
-
[X] 新增几个直播源
-
[X] 优化没有二级的情况自动带入一级图片和标题 @@分割
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录