Add files via upload

This commit is contained in:
n3rddd 2024-06-30 15:03:22 +08:00 committed by GitHub
parent adc5a550be
commit bcbe8e0279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 256 additions and 11 deletions

View File

@ -0,0 +1,69 @@
globalThis.getVideos = function (link, key) {
let html = request(link);
let json = JSON.parse(html);
let data = json.data;
data = data[key];
let videos = data.map((n) => {
let id = n.url;
let name = n.league_name_zh + ' ' + n.home_team_zh + ' VS ' + n.away_team_zh;
let pic = n.cover;
let remarks = n.nickname;
return {
vod_id: id,
vod_name: name,
vod_pic: pic,
vod_remarks: remarks,
};
});
return videos
}
var rule = {
类型: '影视',//影视|听书|漫画|小说
title: '360吧[球]',
host: 'https://m.360ba.co/',
homeUrl: '/api/web/h5_index',
url: '/api/web/live_lists/fyclass',
searchUrl: '/api/web/search?keyword=**',
searchable: 2,
quickSearch: 0,
filterable: 0,
headers: {
'User-Agent': 'MOBILE_UA',
},
timeout: 5000,
class_name: '全部&足球&篮球&综合',
class_url: '1&2&3&99',
play_parse: true,
pagecount: {
"1": 1,
"2": 1,
"3": 1,
"99": 1,
},
lazy: $js.toString(() => {
input = {parse: 0, url: input, header: rule.headers};
}),
预处理: $js.toString(() => {
Object.assign(rule.headers, {
'Referer': rule.host,
'Origin': rule.host,
});
}),
推荐: $js.toString(() => {
VODS = getVideos(input, 'hot_matches');
}),
一级: $js.toString(() => {
VODS = [];
if (MY_PAGE <= 1) {
VODS = getVideos(input, 'data');
}
}),
二级: '*',
搜索: $js.toString(() => {
VODS = [];
if (MY_PAGE <= 1) {
VODS = getVideos(input, 'ball');
}
}),
}

View File

@ -1,15 +1,12 @@
Object.assign(muban.mxone5.二级, { Object.assign(muban.首图2.二级, {
tabs: $js.toString(() => { tabs: 'div.bottom-line h3',
TABS = ['道长在线']
}),
lists: '.module-blocklist:eq(#id)&&a',
}); });
muban.mxone5.二级.title = '.title-link&&Text;.tag-link&&Text';
var rule = { var rule = {
模板: 'mxone5', 模板: '首图2',
title: '人人影视', title: '人人影视',
host: 'https://www.renren.pro', host: 'https://www.rttks.com',
url: '/list/fyclass?page=fypage', url: '/rrtop/fyclassfyfilter.html',
searchUrl: '/search?wd=**', filter_url: '{{fl.area}}{{fl.by}}/page/fypage{{fl.year}}',
class_parse: '.nav-menu-items&&li;a&&Text;a&&href;/list/(.*)', filter: 'H4sIAAAAAAAAA+2Wy27aQBSG38VrJMakuTRv0GeosjBggUnipFzamihSq1wEoQ1t1UBpSC9SCCAlwii9EEfAyzB2eIuOYZg5nq5YdFNmh//vcGbm9/Af9pS4oZmWYSaU9ad7yqZuKetKTMvqT+JKSDG1bZ08e917/KVEng3TyJJn8um5tpXTJ18xiYCPWuODli/7dD9E1WLTPTiiaurZLgeVOmEUvEwBcNIa9esUxPMceIUub6WBVl7zPb67p2AzyYH7+p37qjIDUQAKn0ZOkYK8v8aGj6Yn19K6xs+N6zZ+48x97lHvBp/38WVzXDumLOw3DlMpWDe+qrm9TqCOSkK/su3eDYL9phLzYnBK6gIVVJpVjL+2xQoqMXeqDbd+HaigEqu4tcUeVGIVFRuffMMX34NFTGW7aV+7F42HxnDkfA7uCQJ2N97a2LkKnn8qzSoeSl1xZ1Tiez/7e+9nsIJs0S0NyYsKLsRUtlZj6JVvvGItuBxT2bsbHnr9qlsJvmCusp0Nbkl7XGiLXgQAvKqWrqX5VXWrv8bVH3Nf1QiKPJot5zcMTwRAl0S6BGlEpBFIVZGqkCKRIkDVxwIlAqBrIl2DdFWkq5CuiHQF0mWRLkMqeqVCr1TRKxV6pYpeqdArVfRKhV6polcq9AqJXiHoFRK9QtArJHqFoFdI9ApBr5DoFRHgBY1a4HqefsBOee7ryW71ZJmoFc4apB37bTmOa38ENGlkM/wX2jnEhWNAM7GdtO7vcCM0GXqZpJHK/YOpd94fOU0+3xKxFD9Pr0MyG7AsYNWGn8WMpZOA/fyNLyucJV+k5NiSY0uOLTm25NhapLG1Yya2NRMMLZn8Mvll8svkl8n/fyd/niS/Zcjgl8Evg18Gvwz+hQn+lLGV2zXkf34Z/TL6ZfTL6F+Y6N//A5OZxuqbHwAA',
searchUrl: '/rrcz**/page/fypage.html',
} }

44
JN/dr_py/js/看了么.js Normal file
View File

@ -0,0 +1,44 @@
var rule = {
类型: '影视',//影视|听书|漫画|小说
title: '看了么',
host: 'https://www.ksksn.com/',
url: '/show/fyclassfyfilter',
searchUrl: '/ch/page/fypage/wd/**.html',
searchable: 2,
quickSearch: 0,
filterable: 1,
filter: 'H4sIAAAAAAAAA+2Z607bSBTH3yWfkYLp9rL7Kqt+SNtI7S7tSkArsRUSuZKEbBJYSJom0CIuCSm5QUlDguFlMmP7LdbOmRyPj5ESS5UWJH9C+Z2/zsycGc/fx3wMvFoN/Pb7x8CfYfNvILQUDgXmAu9Cb8PmL1btsOzA/P0htPg+PJa9s3CibsTqFjZ/BNbmgI76TVZR2VHNKCdFLGilCzoCTrVxUub99h1qESC58x1+dXNXbghM1NpNzoQOnUATBS8d8+qZQyHQRGF8OaU5BJoo9M0uVQiEo1zsUoVAa88tDZT85WJoeVmqeSqpdYcz1pwVqyxdm4wwzhQUDIuR6vJYwikRDOcZKfD1olMiGA6UqY/UKhkIGA5U22JXQzIQMMySrrnmIhhWtXnCsg2nRDAcKNPWVCIRTJqutjN0TddiKDnecE1XMKxL82R085XUBRhmSW4b5VOSBRhm2W/w1CeSBZiHDeDRM624RSTAUBLL8OhnIgGGpRvmWaJPSgcMD/7eNv907JQIhgMVN/T0gAwEDOuSP9IP6U4DQ0kuyfLnRAIMD8Ntwdw1chiA2RtQ5XtbdAPGTH7IVsOhJekZu/o+GqozPmML8wu/TPJbaYJjIEUf0egjObpAowtyVKFRRY7O0+i8FFV+JVETSNFnNPpMjj6l0ady9AmNPpGjj2n0sRyltVLkWim0VopcK4XWSpFrpdBaKXKtFForRa7VPK2VCeTj8WLVPhw8t80Gedfh4KWeUfo+SfNiNbjyxpSjQQ0GvLMjRV+/WVm2z3E7bl7rUnT55V9LYWsGz+cCKx98/32w/jv9mtPr6y7PE8yLz0R6LJYnF7ezpqzVY4MmmQswD68Lpi2NBmkyF2D2lVvhJbpoYLjozj8uzxPMg6GZjs4PUmTRwFByeqv3MkQCzK7LNzb8QesyZh6sSDve19t7ZCBgXl6ALOM5JAMBm8XQJpLdpKu6gnl405rhBUhTt1znRTB8TmMq60fJ6wIw3399/30A/vu33/8+WP/VD+r8Grdd+AwwnMR2k2dIPyMYZmnd6h3iM4LhBqj/Go2sUyIY3qeJIU8VyH0KDOfS7/MUcXHB7IN8zpoki2DS9hqHX1zvAhazW8EEjxOJYLjB62mttk4ubmA4UCXDy6TPEwwHKn8eXdOeE5h9ki5GV2RFgkkNJcvS/heYl1eXyrm7LQWGOx3JsiqRCIaSeJflD12lsbGHLlj7ts8zJJFgmEVt8cvInQWQI9I51KPnrnNoMVzAZVxvtcnsgfmO7DvyA3DkV299R36ojqzFmkaJfLITDCdR2NfOaOcHDLPsNtyNBzA0BLPIqQoxBGAoOappO5dM7RIVYmnS+gG9p4FhrugZvyAfnQVDSabLbktEAgyXXh24vwUDQ8nXa14kWQRDSWRTS5FFCealF53e/xnNHZdEMJxLrq4VkmQuwOwVHbBKk65ozKTTz/rku7RguKLpn65naeNneHea/jVGy8Xd1QU2i/X7Luy78P134T8W/w8Xnu6D0710nLXoUAhk92q90ZAoAP00Hzy6cTVGgtl+UdfS9H+HwDw0RvpGQ4v3yOs+MPkQFDdoTzlmOJdkZTTYJHMB5uF21Vsdpu7SRnrMft6l519r9/VauxcX19p/tEgC3dIiAAA=',
filter_url: '{{fl.area}}{{fl.by}}{{fl.class}}/page/fypage{{fl.year}}.html',
filter_def: {},
headers: {
'User-Agent': 'MOBILE_UA',
},
timeout: 5000,
class_parse: '.vi-nav li;a&&Text;a&&href;.*/(.*?)\.html',
cate_exclude: '专题',
play_parse: true,
lazy: $js.toString(() => {
let init_js = `Object.defineProperties(navigator, {platform: {get: () => 'iPhone'}});`;
input = {
parse: 1,
url: input,
parse_extra: '&init_script=' + encodeURIComponent(base64Encode(init_js)),
}
}),
double: false,
推荐: '*',
一级: 'ul.dx-list li;a&&title;a&&data-original;span.vod_remarks&&Text;a&&href',
二级: {
title: 'h1&&Text',
img: '.video-cover&&img&&src',
desc: '.stui-content__detail p:eq(5)&&Text',
content: '.vod_content&&Text',
tabs: 'div.player_info h2',
lists: 'div.play_li:eq(#id)&&a',
tab_text: 'body&&Text',
list_text: 'body&&Text',
list_url: 'a&&href',
list_url_prefix: '',
},
搜索: '*',
}

View File

@ -0,0 +1,81 @@
var rule = {
类型: '影视',//影视|听书|漫画|小说
title: '童趣[儿]',
host: 'https://www.boosj.com',
url: '/search_res_3362__fyclass_fypage_fyfilter',
searchUrl: 'https://search.boosj.com/m_ajax?q=**&p=fypage&typeId=3362',
searchable: 2,
quickSearch: 0,
filterable: 1,
filter: '',
filter_url: '{{fl.by}}.html{{fl.age}}',
filter_def: {},
headers: {
'User-Agent': 'MOBILE_UA',
},
timeout: 5000,
class_parse: $js.toString(() => {
let classes = [{type_id: '', type_name: '全部'}, {type_id: 28, type_name: '辅食'}, {
type_id: 582,
type_name: '动画'
}, {type_id: 3364, type_name: '儿童舞蹈'}, {type_id: 3366, type_name: '少儿英语'}, {
type_id: 3367,
type_name: '儿童歌曲'
}, {type_id: 3622, type_name: '才艺'}, {type_id: 3782, type_name: '播视自制'}, {
type_id: 3822,
type_name: '故事'
}, {type_id: 3842, type_name: '亲子教育'}, {type_id: 4402, type_name: '美术'}, {
type_id: 4583,
type_name: '其他'
}, {type_id: 4762, type_name: '儿童游戏'}, {type_id: 4842, type_name: '识物'}, {
type_id: 4843,
type_name: '绘本'
}, {type_id: 4844, type_name: '古诗'}, {type_id: 4845, type_name: '科普'}, {
type_id: 5102,
type_name: '儿童玩具'
}, {type_id: 5142, type_name: '播视童趣儿童玩具'}];
homeObj.filter = {};
let jsonData = [
{
key: 'age',
name: '年龄段',
value: [
{n: '全部', v: ''},
{n: '6岁以上', v: '?p367=370'},
{n: '3~6岁', v: '?p367=369'},
{n: '0~3岁', v: '?p367=368'},
],
init: '',
},
{
key: 'by',
name: '排序',
value: [
{n: '全部', v: ''},
{n: '最新发布', v: 'lately'},
{n: '最多播放', v: 'pop'},
{n: '最多评论', v: 'view'},
],
init: '',
},
];
classes.forEach(it => {
homeObj.filter[it.type_id] = jsonData;
});
input = classes
}),
cate_exclude: '',
play_parse: true,
lazy: $js.toString(() => {
input = {
parse: 1, url: input, js: "document.querySelector('video').play();",
header: {
'User-Agent': PC_UA,
}
};
}),
推荐: '',
一级: 'body div.bj-col4:has(h3);a&&title;img&&data-original;span.played&&Text;a&&href',
二级: '*',
搜索: 'json:body.result;resourceName;imageUrl;clickNumStr;playUrl',
}

View File

@ -0,0 +1,54 @@
var rule = {
类型: '小说',//影视|听书|漫画|小说
title: '笔趣阁13[书]',
host: 'https://m.13bqg.cc',
url: '/fyclass/fypage.html',
searchUrl: '/user/hm.html?q=**',
searchable: 0,
quickSearch: 0,
filterable: 0,
filter: '',
filter_url: '',
filter_def: {},
headers: {
'User-Agent': 'MOBILE_UA',
},
timeout: 5000,
class_parse: 'div.nav&&ul&&li;a&&Text;a&&href;.*/(.*?)/',
cate_exclude: '',
play_parse: true,
lazy: $js.toString(() => {
let html = request(input);
let title = pdfh(html, 'title&&Text').split('_')[0];
// let content = pdfh(html, '#chaptercontent&&Html').replace(/<br>/g, '\n').replace(/\n\n/g, '\n');
let content = pdfh(html, '#chaptercontent&&Html').replace(/\n/g, "").split("<br>").filter(v => v).slice(0, -1).join("\n");
let ret = JSON.stringify({
title,
content
});
input = {parse: 0, url: 'novel://' + ret, js: ''};
}),
double: true,
// 推荐: '列表1;列表2;标题;图片;描述;链接;详情',
一级: 'div.item;img&&alt;img&&src;span&&Text;a&&href',
二级: {
重定向: $js.toString(() => {
log('执行重定向:' + MY_URL);
// let html = request(MY_URL);
MY_URL = pd(html, '.book_more&&a&&href', MY_URL);
log('二级重定向到:' + MY_URL);
html = request(MY_URL);
}),
title: '[property$=book_name]&&content',
img: 'div.cover&&img&&src',
desc: '主要信息;[property$=update_time]&&content;地区;演员;[property$=author]&&content',
content: '[property$=description]&&content',
tabs: '.title',
lists: 'dl&&dd:gt(0)&&a',
tab_text: 'body&&Text',
list_text: 'body&&Text',
list_url: 'a&&href',
list_url_prefix: '',
},
// 搜索:'列表;标题;图片;描述;链接;详情',
}