-
Notifications
You must be signed in to change notification settings - Fork 296
Expand file tree
/
Copy pathDJ音乐[听].js
More file actions
51 lines (50 loc) · 1.45 KB
/
DJ音乐[听].js
File metadata and controls
51 lines (50 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
@header({
searchable: 2,
filterable: 0,
quickSearch: 0,
title: 'DJ音乐',
author: 'EylinSir',
'类型': '影视',
logo: 'https://pic.289.com/up/2023-12/20231219154340126.png',
lang: 'ds'
})
*/
var rule = {
title: 'DJ音乐',
host: 'http://www.djuu.com',
homeUrl: '/exclusive/115_1.html',
url: '/djlist/fyclass_fypage.html',
searchUrl: '/search?musicname=**',
author: 'EylinSir',
logo: 'https://pic.289.com/up/2023-12/20231219154340126.png',
hikerListCol: 'icon_4',
searchable: 2,
quickSearch: 0,
class_name: '迪高串烧&慢摇串烧&慢歌串烧&中文Remix&外文Remix&HOUSE&HOUSE&霓虹风格&Mashup&中文DISCO&外文DISCO',
class_url: '1&2&3&4&5&6&7&8&9&10',
headers: {
'User-Agent': 'PC_UA'
},
timeout: 5000,
limit: 6,
double: false,
play_parse: true,
lazy: async function () {
let {input} = this;
log("input:", input);
let html = await request(input);
// log(html)
let music = html.match(/var\s+music\s*=\s*(\{[\s\S]*?\})/)[1];
music = JSON5.parse(music);
// log(music);
// 算法来自:https://www.djuu.com/static/js/common.js
input = urljoin(input, "//mp4.djuu.com/" + music.file + ".m4a");
// log(input);
return input;
},
推荐: '*',
一级: '.list_musiclist tr:gt(0);a&&title;img&&src;.cor999:eq(1)&&Text;a&&href',
二级: '*',
搜索: '*;*;*;.sc_1&&Text;*',
}