mirror of
https://github.com/qist/tvbox.git
synced 2026-11-01 09:15:42 +00:00
fix(DJ音乐): 站点迁 https + 分类选择器精确化 + 播放页提取 m4a 直链
- host 改 https(站点 http 301 跳转)。
- class_parse 选择器由 #top_banner_bg div 改为 div.xcls0(原选到父级导致
分类名串成一串且重复)。
- 二级改 JS:解析播放页内联 var music={file:...},直链
https://mp4.djuu.com/<file>.m4a(实测 206 audio/x-m4a),play_parse:false。
This commit is contained in:
1 parent
43b6c29472
commit
d5ad4c42a8
1 file changed
+14
-4
+14
-4
@@ -14,23 +14,33 @@
|
||||
|
||||
var rule = {
|
||||
title:'DJ音乐',
|
||||
host:'http://www.djuu.com',
|
||||
host:'https://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',
|
||||
class_parse:'#top_banner_bg div.xcls0;a&&Text;a&&href;/djlist/(\\d+)_1.html',
|
||||
headers:{
|
||||
'User-Agent':'PC_UA'
|
||||
},
|
||||
timeout:5000,
|
||||
play_parse:true,
|
||||
play_parse:false,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
double:false,
|
||||
推荐:'*',
|
||||
一级:'.list_musiclist tr:gt(0);a&&title;img&&src;.cor999:eq(1)&&Text;a&&href',
|
||||
二级:'*',
|
||||
二级:$js.toString(() => {
|
||||
// 播放页内联 var music = {..., file:'c1/13/2026/xxx', ...};音频直链为
|
||||
// https://mp4.djuu.com/<file>.m4a(实测 206 audio/x-m4a)。
|
||||
VOD = {};
|
||||
let html = fetch(input, fetch_params);
|
||||
let m = html.match(/file:\s*'([^']+)'/);
|
||||
let file = m ? m[1] : '';
|
||||
let playUrl = file ? ('https://mp4.djuu.com/' + file + '.m4a') : input;
|
||||
VOD.vod_play_from = '在线播放';
|
||||
VOD.vod_play_url = '正片$' + playUrl;
|
||||
}),
|
||||
搜索:'*;*;*;.sc_1&&Text;*',
|
||||
}
|
||||
Reference in new issue
Block a user