提交 72b581f4 编写于 作者: H hjdhnx

升级了

上级 85f89b82
无法预览此类型文件
// 道长 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;*',
}
......@@ -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'\nif (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'\nif (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
......
3.9.15beta4
\ No newline at end of file
3.9.15beta5
\ No newline at end of file
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
......@@ -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.
先完成此消息的编辑!
想要评论请 注册