Skip to content

Commit

Permalink
update FM
Browse files Browse the repository at this point in the history
  • Loading branch information
gaotianliuyun committed Aug 28, 2023
1 parent 1636987 commit bd60120
Show file tree
Hide file tree
Showing 6 changed files with 1,471 additions and 215 deletions.
147 changes: 49 additions & 98 deletions 0827.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spider": "./jar/custom_spider.jar;md5;8f735b6bf0cda5984e8ec2c184fa9cd07",
"spider": "./jar/custom_spider.jar;md5;a2204506315000174d11fe509f88259c",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [
{
Expand Down Expand Up @@ -32,7 +32,7 @@
"key": "bili_open",
"name": "哔哩(open)",
"type": 3,
"api": "https://raw.githubusercontent.com/FongMi/CatVodOpen/main/open/bili_open.js",
"api": "./js/bili_open.js",
"searchable": 1,
"changeable": 0,
"ext": {
Expand All @@ -49,7 +49,7 @@
"changeable": 0,
"style": {
"type": "rect",
"ratio": 1.597
"ratio": 1.433
},
"ext": {
"json": "./json/chuqiuyu1.json",
Expand All @@ -64,6 +64,18 @@
"searchable": 1,
"changeable": 1
},
{
"key": "玩偶",
"name": "玩偶",
"type": 3,
"api": "csp_Wogg",
"searchable": 1,
"changeable": 0,
"ext": {
"token": "http://127.0.0.1:9978/file/tvfan/token.txt",
"filter": "./json/wogg.json"
}
},
{
"key": "星星",
"name": "星星",
Expand All @@ -85,108 +97,41 @@
"key": "廠長",
"name": "廠長",
"type": 3,
"api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/czzy_open.js",
"api": "./js/czzy_open.js",
"searchable": 1,
"changeable": 1
},
{
"key": "愛看",
"name": "愛看",
"type": 3,
"api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/ikanbot_open.js",
"api": "./js/ikanbot_open.js",
"searchable": 1,
"changeable": 1
},
{
"key": "快看",
"name": "快看",
"type": 3,
"api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/kkys_open.js",
"api": "./js/kkys_open.js",
"searchable": 1,
"changeable": 1
},
{
"key": "量子",
"name": "量子",
"type": 0,
"api": "https://cj.lziapi.com/api.php/provide/vod/at/xml/",
"key": "暴風",
"name": "暴風",
"type": 1,
"api": "https://bfzyapi.com/api.php/provide/vod/?ac=list",
"searchable": 1,
"changeable": 1,
"categories": [
"国产动漫",
"日韩动漫",
"国产剧",
"韩国剧",
"日本剧",
"电影片",
"连续剧",
"综艺片",
"动漫片",
"动作片",
"喜剧片",
"爱情片",
"科幻片",
"恐怖片",
"剧情片",
"战争片",
"台湾剧",
"香港剧",
"欧美剧",
"记录片",
"海外剧",
"泰国剧",
"大陆综艺",
"港台综艺",
"日韩综艺",
"欧美综艺",
"欧美动漫",
"港台动漫",
"海外动漫",
"体育",
"足球",
"篮球",
"网球",
"斯诺克"
]
"changeable": 1
},
{
"key": "非凡",
"name": "非凡",
"key": "量子",
"name": "量子",
"type": 0,
"api": "http://cj.ffzyapi.com/api.php/provide/vod/at/xml/",
"api": "https://cj.lziapi.com/api.php/provide/vod/at/xml/",
"searchable": 1,
"changeable": 1,
"categories": [
"国产动漫",
"日韩动漫",
"国产剧",
"韩国剧",
"日本剧",
"电影片",
"连续剧",
"综艺片",
"动漫片",
"动作片",
"喜剧片",
"爱情片",
"科幻片",
"恐怖片",
"剧情片",
"战争片",
"香港剧",
"欧美剧",
"记录片",
"台湾剧",
"海外剧",
"泰国剧",
"大陆综艺",
"港台综艺",
"日韩综艺",
"欧美综艺",
"欧美动漫",
"港台动漫",
"海外动漫"
]
"changeable": 1
},
{
"key": "櫻花",
Expand All @@ -212,45 +157,41 @@
"searchable": 1,
"changeable": 1
},
{
"key": "玩偶",
"name": "玩偶",
"type": 3,
"api": "csp_Wogg",
"searchable": 1,
"changeable": 0
},
{
"key": "七夜",
"name": "七夜",
"type": 3,
"api": "csp_Dovx",
"searchable": 1,
"changeable": 0
"changeable": 0,
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
},
{
"key": "雲搜",
"name": "雲搜",
"type": 3,
"api": "csp_UpYun",
"searchable": 1,
"changeable": 0
"changeable": 0,
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
},
{
"key": "盤搜",
"name": "盤搜",
"type": 3,
"api": "csp_PanSou",
"searchable": 1,
"changeable": 0
"changeable": 0,
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
},
{
"key": "盤搜索",
"name": "盤搜索",
"type": 3,
"api": "csp_PanSearch",
"searchable": 1,
"changeable": 0
"changeable": 0,
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
},
{
"key": "找資源",
Expand All @@ -259,15 +200,16 @@
"api": "csp_Zhaozy",
"searchable": 1,
"changeable": 0,
"ext": "影視天下第一$$$test2$$$test2"
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt$$$test2$$$test2"
},
{
"key": "push_agent",
"name": "推送",
"type": 3,
"api": "csp_Push",
"searchable": 1,
"changeable": 0
"changeable": 0,
"ext": "http://127.0.0.1:9978/file/tvfan/token.txt"
}
],
"doh": [
Expand Down Expand Up @@ -315,6 +257,15 @@
}
],
"rules": [
{
"name": "暴風",
"hosts": [
"bfzy"
],
"regex": [
"#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"
]
},
{
"name": "星星",
"hosts": [
Expand All @@ -325,7 +276,7 @@
]
},
{
"name": "量子廣告",
"name": "量子",
"hosts": [
"vip.lz",
"hd.lz"
Expand All @@ -336,7 +287,7 @@
]
},
{
"name": "非凡廣告",
"name": "非凡",
"hosts": [
"vip.ffzy",
"hd.ffzy"
Expand Down
Binary file modified jar/custom_spider.jar
Binary file not shown.
13 changes: 5 additions & 8 deletions js/czzy_open.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// 自动从 地址发布页 获取&跳转url地址
import { Crypto, load, _ } from './lib/cat.js';

let key = 'czzy';
let host = 'https://www.czzy.site'; // 厂长地址发布页
// let url = 'https://cz01.cc';
let url = '';
let url = 'https://cz01.cc';
let siteKey = '';
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 cookie = {};

async function request(reqUrl, referer, mth, data, hd) {
Expand Down Expand Up @@ -49,15 +48,13 @@ async function request(reqUrl, referer, mth, data, hd) {
async function init(cfg) {
siteKey = cfg.skey;
siteType = cfg.stype;
let html = await request(host);
url = html.match(/访<a href="(.*)"/)[1];
console.debug('厂长跳转地址 =====>' + url); // js_debug.log
}

async function home(filter) {
let filterObj = {};
const html = await request(url + '/movie_bt');
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');
let tag = {
key: 'tag',
Expand All @@ -69,7 +66,6 @@ async function home(filter) {
}),
};
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 typeId = s.attribs['cat-url'];
typeId = typeId.substring(typeId.lastIndexOf('/') + 1);
Expand Down Expand Up @@ -137,6 +133,7 @@ async function detail(id) {
const detail = $('ul.moviedteail_list > li');
let vod = {
vod_id: id,
vod_name: $('div.moviedteail_tt > h1').text().trim(),
vod_pic: $('div.dyimg img:first').attr('src'),
vod_remarks: '',
vod_content: stripHtmlTag($('div.yp_context').html()).trim(),
Expand Down
Loading

0 comments on commit bd60120

Please sign in to comment.