update FM
This commit is contained in:
parent
359f774535
commit
3f9666ece0
11
0827.json
11
0827.json
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"spider": "./jar/custom_spider.jar;md5;a296bd2bc81da9960738fa6edd394246",
|
"spider": "./jar/custom_spider.jar;md5;e202ef069c4742cadfd707f4b144ed2a",
|
||||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
@ -184,6 +184,15 @@
|
|||||||
"changeable": 0,
|
"changeable": 0,
|
||||||
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
|
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "小紙條",
|
||||||
|
"name": "小紙條",
|
||||||
|
"type": 3,
|
||||||
|
"api": "csp_XiaoZhiTiao",
|
||||||
|
"searchable": 1,
|
||||||
|
"changeable": 0,
|
||||||
|
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "盤搜索",
|
"key": "盤搜索",
|
||||||
"name": "盤搜索",
|
"name": "盤搜索",
|
||||||
|
|||||||
Binary file not shown.
@ -1,12 +1,13 @@
|
|||||||
|
// 自动从 地址发布页 获取&跳转url地址
|
||||||
import { Crypto, load, _ } from './lib/cat.js';
|
import { Crypto, load, _ } from './lib/cat.js';
|
||||||
|
|
||||||
let key = 'czzy';
|
let key = 'czzy';
|
||||||
let url = 'https://cz01.cc';
|
let host = 'https://www.czzy.site'; // 厂长地址发布页
|
||||||
|
// let url = 'https://cz01.cc';
|
||||||
|
let url = '';
|
||||||
let siteKey = '';
|
let siteKey = '';
|
||||||
let siteType = 0;
|
let siteType = 0;
|
||||||
|
|
||||||
const UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1';
|
const UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1';
|
||||||
|
|
||||||
const cookie = {};
|
const cookie = {};
|
||||||
|
|
||||||
async function request(reqUrl, referer, mth, data, hd) {
|
async function request(reqUrl, referer, mth, data, hd) {
|
||||||
@ -48,13 +49,15 @@ async function request(reqUrl, referer, mth, data, hd) {
|
|||||||
async function init(cfg) {
|
async function init(cfg) {
|
||||||
siteKey = cfg.skey;
|
siteKey = cfg.skey;
|
||||||
siteType = cfg.stype;
|
siteType = cfg.stype;
|
||||||
|
let html = await request(host);
|
||||||
|
url = html.match(/推荐访问<a href="(.*)"/)[1];
|
||||||
|
console.debug('厂长跳转地址 =====>' + url); // js_debug.log
|
||||||
}
|
}
|
||||||
|
|
||||||
async function home(filter) {
|
async function home(filter) {
|
||||||
let filterObj = {};
|
let filterObj = {};
|
||||||
const html = await request(url + '/movie_bt');
|
const html = await request(url + '/movie_bt');
|
||||||
const $ = load(html);
|
const $ = load(html);
|
||||||
const series = $('div#beautiful-taxonomy-filters-tax-movie_bt_series > a[cat-url*=movie_bt_series]');
|
|
||||||
const tags = $('div#beautiful-taxonomy-filters-tax-movie_bt_tags > a');
|
const tags = $('div#beautiful-taxonomy-filters-tax-movie_bt_tags > a');
|
||||||
let tag = {
|
let tag = {
|
||||||
key: 'tag',
|
key: 'tag',
|
||||||
@ -66,6 +69,7 @@ async function home(filter) {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
tag['init'] = tag.value[0].v;
|
tag['init'] = tag.value[0].v;
|
||||||
|
const series = $('div#beautiful-taxonomy-filters-tax-movie_bt_series > a[cat-url*=movie_bt_series]');
|
||||||
let classes = _.map(series, (s) => {
|
let classes = _.map(series, (s) => {
|
||||||
let typeId = s.attribs['cat-url'];
|
let typeId = s.attribs['cat-url'];
|
||||||
typeId = typeId.substring(typeId.lastIndexOf('/') + 1);
|
typeId = typeId.substring(typeId.lastIndexOf('/') + 1);
|
||||||
@ -133,7 +137,6 @@ async function detail(id) {
|
|||||||
const detail = $('ul.moviedteail_list > li');
|
const detail = $('ul.moviedteail_list > li');
|
||||||
let vod = {
|
let vod = {
|
||||||
vod_id: id,
|
vod_id: id,
|
||||||
vod_name: $('div.moviedteail_tt > h1').text().trim(),
|
|
||||||
vod_pic: $('div.dyimg img:first').attr('src'),
|
vod_pic: $('div.dyimg img:first').attr('src'),
|
||||||
vod_remarks: '',
|
vod_remarks: '',
|
||||||
vod_content: stripHtmlTag($('div.yp_context').html()).trim(),
|
vod_content: stripHtmlTag($('div.yp_context').html()).trim(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user