diff --git a/base/rules.db b/base/rules.db index 293f0016d6aa6ab2b0cd780caed4d5c125217766..296501b6eddda90e06c87a9574a4d622c6983aa3 100644 Binary files a/base/rules.db and b/base/rules.db differ diff --git "a/js/DJ\351\237\263\344\271\220.js" "b/js/DJ\351\237\263\344\271\220.js" new file mode 100644 index 0000000000000000000000000000000000000000..cf0e30497ec550ada0d79d8131fdcc4d850d4361 --- /dev/null +++ "b/js/DJ\351\237\263\344\271\220.js" @@ -0,0 +1,36 @@ +// 道长 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;*', +} diff --git a/js/rules.py b/js/rules.py index f13e6b73844f9350de057fb24175c227ecd5a91b..e564b96c3fc792d056c8191cefd20de774911c15 100644 --- a/js/rules.py +++ b/js/rules.py @@ -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 diff --git a/js/version.txt b/js/version.txt index e9c3c5e7504372f41eb9aa107f65d9769108b27d..3a73073431bff71d29e110170acf40bdc190bb26 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.15beta4 \ No newline at end of file +3.9.15beta5 \ No newline at end of file diff --git "a/js/\351\245\255\345\233\242.js" "b/js/\351\245\255\345\233\242.js" new file mode 100644 index 0000000000000000000000000000000000000000..01382653cf045d88a522b01fef19071f12da069a --- /dev/null +++ "b/js/\351\245\255\345\233\242.js" @@ -0,0 +1,23 @@ +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 diff --git a/readme.md b/readme.md index c5aa21f3897a9ce189763b11d0fecae745e0585b..f24d2c383b989c4b34e1ae8559c3981c176b6f27 100644 --- a/readme.md +++ b/readme.md @@ -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] 优化没有二级的情况自动带入一级图片和标题 @@分割