上传文件至 lib

This commit is contained in:
Fathers 2024-11-26 05:13:49 -06:00
parent 3f91acea35
commit e8a7a60fbe
5 changed files with 207 additions and 0 deletions

27
lib/六月听书.js Normal file

@ -0,0 +1,27 @@
var rule = {
title: '六月听书',
host: 'http://m.6yueting.com',
url: '/ys/fyclass/o2/pfypage',
searchUrl: '/search/index/search?content=**&type=1&pageNum=fypage&pageSize=40',
searchable: 2,
quickSearch: 0,
filterable:0,//是否启用分类筛选,
headers:{'User-Agent':'MOBILE_UA'},
class_name:'全部分类&玄幻奇幻&修真武侠&恐怖灵异&古今言情&都市言情&穿越重生&粤语古仔&网游小说&通俗文学&历史纪实&军事&悬疑推理&ebc5系列&官场商战&儿童读物&广播剧&外文原版&评书大全&相声小品&百家讲坛&健康养生&教材&期刊头条&戏曲&脱口秀',
class_url:'t0&t1&t2&t3&t4&t28&t5&t6&t7&t11&t12&t13&t14&t18&t15&t16&t17&t22&t8&t9&t10&t20&t21&t23&t24&t27',
play_parse:true,
lazy:'',
limit:6,
图片来源:'@Referer=http://m.6yueting.com/@User-Agent=MOBILE_UA',
推荐:'*',
一级: '.list-wrapper&&.item-link;h2--span&&Text;img&&src;.status&&Text;a&&href',
二级:{
"title":".book-title&&Text;.text:eq(0)&&Text",
"img":".img&&src",
"desc":".text:eq(3)&&Text;;;.text:eq(1)&&Text;.text:eq(2)&&Text",
"content":".book-intro&&Text",
"tabs":".operate-bar&&.total-num",
"lists":".book-list:eq(#id)&&.list-item"
},
搜索:'js:let d=[];let MY_HOME="http://m.6yueting.com";let html=request(input);html=JSON.parse(html);let list=html.data.content;list.forEach(function(it){d.push({title:it.name.replace(/<.*?>/g,""),img:"http://img.6yueting.com:20001/"+it.coverUrlLocal,url:MY_HOME+"/list/"+it.code,desc:it.cdate,content:it.descXx.replace(/&nbsp;/g,"")})});setResult(d);',
}

51
lib/博看听书.js Normal file

@ -0,0 +1,51 @@
var rule = {
title: '博看听书',
host: 'https://api.bookan.com.cn',
homeUrl:'/voice/book/list?instance_id=25304&page=1&category_id=1305&num=24',
url: '/voice/book/list?instance_id=25304&page=fypage&category_id=fyclass&num=24',
detailUrl:'/voice/album/units?album_id=fyid&page=1&num=200&order=1',
searchUrl: 'https://es.bookan.com.cn/api/v3/voice/book?instanceId=25304&keyword=**&pageNum=fypage&limitNum=20',
searchable: 2,
quickSearch: 0,
class_name:'少年读物&儿童文学&国学经典&文艺少年&育儿心经&心理哲学&青春励志&历史小说&故事会&音乐戏剧&相声评书',
class_url:'1305&1304&1320&1306&1309&1310&1307&1312&1303&1317&1319',
headers:{'User-Agent':'MOBILE_UA'},
推荐:'*',
一级:'json:data.list;name;cover;extra.author;id',
二级:`js:
let d = [];
VOD = {
vod_url: input,
vod_name: "",
vod_actor: "",
vod_year: "",
vod_director: ""
};
let playlists = [];
let data = JSON.parse(request(input)).data;
VOD.vod_name = data.list[0].id;
VOD.vod_actor = "▶️创建于" + data.list[0].created_at;
VOD.vod_year = data.list[0].created_at.split("-")[0];
VOD.vod_director = "▶️更新于" + data.list[0].updated_at;
let total = data.total;
playlists = data.list;
if (total > 200) {
for (let i = 2; i < total / 200 + 1; i++) {
let listUrl = input.split("&")[0] + "&page=" + i + "&num=200&order=1";
let data = JSON.parse(request(listUrl)).data;
playlists = playlists.concat(data.list)
}
}
playlists.forEach(function(it) {
d.push({
title: it.title,
url: it.file
})
});
VOD.vod_play_from = "bookan";
VOD.vod_play_url = d.map(function(it) {
return it.title + "$" + it.url
}).join("#");
`,
搜索:'*',
}

36
lib/呦呦DJ.js Normal file

@ -0,0 +1,36 @@
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
// 道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/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://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/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;*',
}

73
lib/播客.js Normal file

@ -0,0 +1,73 @@
// 无搜索
var rule = {
title:'播客',
host:'https://getpodcast.xyz',
url: '/fyclass',
searchUrl: '',
searchable:0,
quickSearch:0,
headers:{
'User-Agent': 'PC_UA'
},
timeout:5000,
class_name:'播客&人文&NEWS热点&影视与读书&教育&历史&音乐&情感&有声书',
class_url:'0&1&2&3&4&5&6&7&8',
cate_exclude:'',
play_parse:true,
lazy:`js:
input = {jx:0, url:input, parse:0}
`,
limit:6,
推荐: `js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
var d = [];
var html = request(HOST);
var list = pdfa(html, 'body&&.pic_list:eq(0)&&li');
list.forEach(it => {
d.push({
title: pdfh(it, '.title&&Text'),
pic_url: pdfh(it, 'img&&src'),
url: pd(it, 'a&&href') + '|' + pdfh(it, '.title&&Text') + '|' + pdfh(it, 'img&&src')
});
})
setResult(d);
`,
一级: `js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
var d = [];
var html = request(HOST);
var list = pdfa(html, 'body&&.pic_list:eq(list_idx)&&li'.replace("list_idx", MY_CATE));
list.forEach(it => {
d.push({
title: pdfh(it, '.title&&Text'),
pic_url: pdfh(it, 'img&&src'),
url: pd(it, 'a&&href') + '|' + pdfh(it, '.title&&Text') + '|' + pdfh(it, 'img&&src')
});
})
setResult(d);
`,
二级: `js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let purl = input.split('|')[0];
let title = input.split('|')[1];
let pic = input.split('|')[2];
var html = request(purl);
let d = [];
VOD = {};
VOD.vod_name = title;
VOD.vod_pic = pic;
if (typeof play_url === 'undefined') {
var play_url = ''
}
let episodes = pdfa(html, 'body&&item');
log('episodes =========>'+episodes);
let vod_play_url = episodes.map(function(it) {
let ititle = it.match(/<title>(.*?)<\\/title>/)[1].replace(/&lt;!\\[CDATA\\[|\\]\\]&gt;||<!\\[CDATA\\[|\\]\\]>/g, '');
let iurl = pdfh(it, 'enclosure&&url');
return ititle + '$' + iurl
}).join('#')
VOD.vod_play_from = '道长在线';
VOD.vod_play_url = vod_play_url
`,
搜索:'',
}

20
lib/有声绘本网.js Normal file

@ -0,0 +1,20 @@
var rule = {
title:'有声绘本网',
host:'https://www.youshenghuiben.com',
url: '/fyclass/fypage',
searchUrl: '/search.php?&q=**&page=fypage',
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': 'MOBILE_UA'
},
timeout:5000,//网站的全局请求超时,默认是3000毫秒
class_parse:'#menu-main&&li:gt(0):lt(7);a&&Text;a&&href;com/(\\w+)',
play_parse:true,
limit:6,
推荐: '*',
一级: 'article.excerpt-c5;a&&title;img&&src;.post-like&&Text;a&&href',
二级:'*',
搜索: 'article.excerpt-tw;*;*;time&&Text;*',
}