mirror of https://github.com/qist/tvbox
update json
This commit is contained in:
parent
ed7f6a0615
commit
6632e386f2
18
0825.json
18
0825.json
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider":"./jar/fm.jar;md5;55e3c38d1624229c0905a470bee734f7",
|
||||
"spider":"./jar/fm.jar;md5;37e846d5e473d18852adad7478823fa6",
|
||||
"lives":[{"name":"初秋语•综合","type":0,"url":"./list.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
|
||||
{"name":"Ray•综合","type":0,"url":"https://xhdwc.tk/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
|
||||
{"name":"俊于•综合","type":0,"url":"http://home.jundie.top:81/Cat/tv/live.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"}],
|
||||
|
@ -9,11 +9,14 @@
|
|||
{"key":"drpy_js_磁力熊搜索","name":"熊搜","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiong.js","searchable":0,"quickSearch":0,"changeable":1},
|
||||
{"key":"csp_YGP","name":"预告片","type":3,"api":"csp_YGP","searchable":1,"quickSearch":1,"changeable":0},
|
||||
{"key":"csp_Bili","name":"哔哩","type":3,"api":"csp_Bili","searchable":1,"quickSearch":1,"style":{"type":"rect","ratio":1.755},"filterable":1,"changeable":0,"ext":{"json":"./json/chuqiuyu1.json","cookie": "http://127.0.0.1:9978/file/tvfan/cookie.txt"}},
|
||||
{"key":"荐片","name":"荐片","type":3,"api":"csp_Jianpian","searchable":1,"changeable":1,"ext":"./json/jianpian.json"},
|
||||
{"key":"csp_WoGG","name":"哥哥","type":3,"api":"csp_Wogg","searchable":1,"quickSearch":1,"changeable":0,"ext":"http://127.0.0.1:9978/file/tvfan/token.json$$$https://wogg.xyz/", "timeout":30},
|
||||
{"key":"csp_Wobg","name":"表哥","type":3,"api":"csp_Wobg","searchable":1,"quickSearch":1,"changeable":0,"ext":"http://127.0.0.1:9978/file/tvfan/token.json", "timeout":30},
|
||||
{"key":"小纸条_cli","name":"小纸条","type":4,"api":"http://home.jundie.top:9520/spider/cli_gitCafe","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.txt", "timeout":30},
|
||||
{"key":"drpy_js_直播大全","name":"直播","type":3,"api":"./lib/live2cms.js","style":{ "type":"oval"},"changeable":0,"ext":"./js/live2mv_data.json"},
|
||||
|
||||
{"key":"4KHDR","name":"4KHDR","type":3,"api":"csp_FourKHDR","ext":"http://127.0.0.1:9978/file/tvfan/token.json$$$http://127.0.0.1:9978/file/tvfan/4khdr.txt","quickSearch":1,"changeable":1,"timeout":60},
|
||||
{"key":"校长影视","name":"校长","type":3,"api":"csp_XiaoZhang","ext":"http://127.0.0.1:9978/file/tvfan/token.json","quickSearch":1,"changeable":1,"timeout":30},
|
||||
{"key":"Mayiys","name":"蚂蚁","type":3,"api":"csp_Mayiys","searchable":1,"quickSearch":1,"filterable":1,"changeable":1},
|
||||
{"key":"DDMJ","name":"米酷","type":3,"api":"csp_DDMJ","searchable":1,"quickSearch":1,"filterable":1,"changeable":1,"ext":"http://103.222.188.33:6688"},
|
||||
{"key":"Maolv","name":"毛驴","type":3,"api":"csp_Maolv","searchable":1,"quickSearch":1,"filterable":1,"changeable":1},
|
||||
|
@ -74,7 +77,18 @@
|
|||
|
||||
{"key":"本地","name":"本地","type":3,"api":"csp_Local","searchable":0,"changeable":0},
|
||||
{"key":"AList","name":"网盘","type":3,"api":"csp_AList","searchable":1,"changeable":0,"ext":"./json/alist.json"},
|
||||
{"key":"WebDAV","name":"云盘","type":3,"api":"csp_WebDAV","searchable":1,"changeable":0,"ext":"./json/webdav.json"}
|
||||
{"key":"WebDAV","name":"云盘","type":3,"api":"csp_WebDAV","searchable":1,"changeable":0,"ext":"./json/webdav.json"},
|
||||
{"key":"應用商店","name":"應用商店","type":3,"api":"csp_Market","searchable":0,"changeable":0,"ext":[
|
||||
{"name":"電視-java-v7","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-java-armeabi_v7a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8nk2.png"},
|
||||
{"name":"電視-java-v8","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-java-arm64_v8a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8nk2.png"},
|
||||
{"name":"電視-py-v7","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-python-armeabi_v7a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8nk2.png"},
|
||||
{"name":"電視-py-v8","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-python-arm64_v8a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8nk2.png"},
|
||||
{"name":"Android-4.x","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/kitkat/leanback.apk","icon":"https://i.imgs.ovh/2023/10/17/r8nk2.png"},
|
||||
{"name":"手機-java-v7","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-java-armeabi_v7a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8lVK.png"},
|
||||
{"name":"手機-java-v8","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-java-arm64_v8a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8lVK.png"},
|
||||
{"name":"手機-py-v7","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-python-armeabi_v7a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8lVK.png"},
|
||||
{"name":"手機-py-v8","url":"https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-python-arm64_v8a.apk","icon":"https://i.imgs.ovh/2023/10/17/r8lVK.png"}
|
||||
]}
|
||||
],
|
||||
"doh":[
|
||||
{"name":"Google","url":"https://dns.google/dns-query","ips":["8.8.4.4","8.8.8.8"]},
|
||||
|
|
57
0827.json
57
0827.json
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "./jar/custom_spider.jar;md5;6aa99ddfd99dd2e5b68615edd29ddb43",
|
||||
"spider": "./jar/custom_spider.jar;md5;8a9d215c9f79d7e5ce9e223b40ed81e8",
|
||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||
"sites": [
|
||||
{
|
||||
|
@ -279,6 +279,61 @@
|
|||
"searchable": 1,
|
||||
"changeable": 0,
|
||||
"ext":"http://127.0.0.1:9978/file/tvfan/token.txt"
|
||||
},
|
||||
{
|
||||
"key": "應用商店",
|
||||
"name": "應用商店",
|
||||
"type": 3,
|
||||
"api": "csp_Market",
|
||||
"searchable": 0,
|
||||
"changeable": 0,
|
||||
"ext": [
|
||||
{
|
||||
"name": "電視-java-v7",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-java-armeabi_v7a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8nk2.png"
|
||||
},
|
||||
{
|
||||
"name": "電視-java-v8",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-java-arm64_v8a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8nk2.png"
|
||||
},
|
||||
{
|
||||
"name": "電視-py-v7",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-python-armeabi_v7a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8nk2.png"
|
||||
},
|
||||
{
|
||||
"name": "電視-py-v8",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/leanback-python-arm64_v8a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8nk2.png"
|
||||
},
|
||||
{
|
||||
"name": "Android-4.x",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/kitkat/leanback.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8nk2.png"
|
||||
},
|
||||
{
|
||||
"name": "手機-java-v7",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-java-armeabi_v7a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8lVK.png"
|
||||
},
|
||||
{
|
||||
"name": "手機-java-v8",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-java-arm64_v8a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8lVK.png"
|
||||
},
|
||||
{
|
||||
"name": "手機-py-v7",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-python-armeabi_v7a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8lVK.png"
|
||||
},
|
||||
{
|
||||
"name": "手機-py-v8",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/Release/main/apk/release/mobile-python-arm64_v8a.apk",
|
||||
"icon": "https://i.imgs.ovh/2023/10/17/r8lVK.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"doh": [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider":"./jar/fm.nogo.jar;md5;220dc8e77bd6abda8525b8dc400dadb0",
|
||||
"spider":"./jar/fm.nogo.jar;md5;e9ed7907360e5d2c80dc6043f78e00ed",
|
||||
"lives":[{"name":"初秋语","type":0,"url":"./listx.txt"},
|
||||
{"name":"YanG","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u"},
|
||||
{"name":"atsushi","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u"},
|
||||
|
|
2
cat.json
2
cat.json
|
@ -34,6 +34,8 @@
|
|||
{"key":"drpy_js_tuxiaobei_open","name":"少儿 | 兔小贝","type":3,"api":"./cat/js/tuxiaobei_open.js"},
|
||||
{"key":"drpy_js_ubestkid_open","name":"少儿 | 贝乐虎","type":3,"api":"./cat/js/ubestkid_open.js"},
|
||||
{"key":"sharenice","name":"聚合 | 短视频","type":3,"api":"./cat/js/sharenice_open.js"},
|
||||
{"key":"douyu_open","name":"直播 | 斗鱼","type":3,"api":"./cat/js/douyu_open.js","ext":{"categories":"数码科技#娱乐推荐#颜值#二次元#星秀#音乐#正能量#原创IP#热门游戏#热门手游#主机游戏#怀旧游戏#王者荣耀"}},
|
||||
{"key":"huya_open","name":"直播 | 虎牙","type":3,"api":"./cat/js/huya_open.js","ext":{"categories":"科技#旅游#娱乐天地#一起看#颜值#二次元#星秀#音乐#原创#网游竞技#单机热游#综合手游"}},
|
||||
{"key":"mybili","name":"视频 | 哔哩1","type":3,"api":"./cat/js/mybili_open.js","style":{"type":"rect","ratio":1.597}},
|
||||
{"key":"bili_open","name":"视频 | 哔哩2","type":3,"api":"./cat/js/bili_open.js","ext":{"categories":"沙雕动画#沙雕穿越#沙雕","cookie":"http://127.0.0.1:9978/file/tvfan/cookie.txt"},"style":{"type":"rect","ratio":1.597}},
|
||||
{"key":"kuqimv","name":"MV | 酷奇","type":3,"api":"./cat/js/kuqimv_open.js"},
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
{"key":"drpy_js_tuxiaobei_open","name":"少儿 | 兔小贝","type":3,"api":"assets://js/tuxiaobei_open.js"},
|
||||
{"key":"drpy_js_ubestkid_open","name":"少儿 | 贝乐虎","type":3,"api":"assets://js/ubestkid_open.js"},
|
||||
{"key":"sharenice","name":"聚合 | 短视频","type":3,"api":"assets://js/sharenice_open.js"},
|
||||
{"key":"douyu_open","name":"直播 | 斗鱼","type":3,"api":"assets://js/douyu_open.js"},
|
||||
{"key":"douyu_open","name":"直播 | 斗鱼","type":3,"api":"assets://js/douyu_open.js","ext":{"categories":"数码科技#娱乐推荐#颜值#二次元#星秀#音乐#正能量#原创IP#热门游戏#热门手游#主机游戏#怀旧游戏#王者荣耀"}},
|
||||
{"key":"huya_open","name":"直播 | 虎牙","type":3,"api":"assets://js/huya_open.js","ext":{"categories":"科技#旅游#娱乐天地#一起看#颜值#二次元#星秀#音乐#原创#网游竞技#单机热游#综合手游"}},
|
||||
{"key":"mybili","name":"视频 | 哔哩综合","type":3,"api":"assets://js/mybili_open.js"},
|
||||
{"key":"bili_open","name":"视频 | 我的哔哩","type":3,"api":"assets://js/bili_open.js","ext":{"categories":"沙雕动画#健身#音乐#舞蹈#风景#美食#科普#历史#法考#医考","cookie":"填自己的cookie"}},
|
||||
{"key":"kuqimv","name":"MV | 酷奇","type":3,"api":"assets://js/kuqimv_open.js"},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Crypto, load, _ } from 'assets://js/lib/cat.js';
|
||||
import { _ } from 'assets://js/lib/cat.js';
|
||||
|
||||
let key = 'douyu';
|
||||
let host = 'http://live.yj1211.work';
|
||||
let categories = '';
|
||||
let siteKey = '';
|
||||
let siteType = 0;
|
||||
|
||||
|
@ -25,44 +25,51 @@ async function request(reqUrl) {
|
|||
|
||||
// cfg = {skey: siteKey, ext: extend}
|
||||
async function init(cfg) {
|
||||
|
||||
siteKey = cfg.skey;
|
||||
siteType = cfg.stype;
|
||||
if (cfg.hasOwnProperty('ext')) {
|
||||
if (cfg.ext.hasOwnProperty('categories')) {
|
||||
categories = cfg.ext.categories;
|
||||
}
|
||||
if (cfg.ext.hasOwnProperty('host')) {
|
||||
host = cfg.ext.host;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function home(filter) {
|
||||
const classes = [
|
||||
{ type_id: "热门游戏", type_name: "热门游戏" },
|
||||
{ type_id: "主机游戏", type_name: "主机游戏" },
|
||||
{ type_id: "原创IP", type_name: "原创IP" },
|
||||
];
|
||||
let classes = [];
|
||||
if (categories.length > 0) {
|
||||
classes = categories.split('#');
|
||||
}
|
||||
classes.unshift('首页');
|
||||
const filterObj = {};
|
||||
return JSON.stringify({
|
||||
class: _.map(classes, (cls) => {
|
||||
cls.land = 1;
|
||||
cls.ratio = 1.78;
|
||||
return cls;
|
||||
class: _.map(classes, (it) => {
|
||||
return {
|
||||
type_id: it,
|
||||
type_name: it,
|
||||
land: 1,
|
||||
ratio: 1.78,
|
||||
}
|
||||
}),
|
||||
filters: filterObj,
|
||||
});
|
||||
}
|
||||
|
||||
async function homeVod() {
|
||||
const data = JSON.parse(await request(host + '/api/live/getRecommendByPlatformArea?platform=douyu&size=20&area=热门游戏&page=1'));
|
||||
let videos = _.map(data.data.list, (it) => {
|
||||
return {
|
||||
vod_id: it.roomId,
|
||||
vod_name: it.roomName,
|
||||
vod_pic: it.roomPic,
|
||||
vod_remarks: it.ownerName,
|
||||
}
|
||||
});
|
||||
return JSON.stringify({
|
||||
list: videos,
|
||||
});
|
||||
return '{}';
|
||||
}
|
||||
|
||||
async function category(tid, pg, filter, extend) {
|
||||
if (pg <= 0 || typeof pg == 'undefined') pg = 1;
|
||||
const data = JSON.parse(await request(host + '/api/live/getRecommendByPlatformArea?platform=douyu&size=20&area=' + tid + '&page=' + pg));
|
||||
let url = '';
|
||||
if (tid == '首页') {
|
||||
url = host + '/api/live/getRecommendByPlatform?platform=douyu&size=20&page=' + pg;
|
||||
} else {
|
||||
url = host + '/api/live/getRecommendByPlatformArea?platform=douyu&size=20&area=' + tid + '&page=' + pg;
|
||||
}
|
||||
const data = JSON.parse(await request(url));
|
||||
let videos = _.map(data.data, (it) => {
|
||||
return {
|
||||
vod_id: it.roomId,
|
||||
|
@ -90,13 +97,13 @@ async function detail(id) {
|
|||
vod_remarks: video.categoryName,
|
||||
type_name: video.categoryName,
|
||||
vod_director: video.ownerName,
|
||||
vod_actor: '在线人数:' + video.online,
|
||||
vod_content: "",
|
||||
vod_year: "",
|
||||
vod_area: "",
|
||||
vod_actor: '',
|
||||
vod_content: video.online + '人在线',
|
||||
vod_year: '',
|
||||
vod_area: '',
|
||||
};
|
||||
vod.vod_play_from = video.platForm;
|
||||
vod.vod_play_url = '原画$' + id;
|
||||
vod.vod_play_url = 'Live$' + id;
|
||||
return JSON.stringify({
|
||||
list: [vod],
|
||||
});
|
||||
|
|
|
@ -0,0 +1,196 @@
|
|||
import { Crypto, _ } from 'assets://js/lib/cat.js';
|
||||
|
||||
let host = 'http://live.yj1211.work';
|
||||
let categories = '';
|
||||
let siteKey = '';
|
||||
let siteType = 0;
|
||||
|
||||
const MOBILE_UA = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36';
|
||||
|
||||
async function requestRaw(reqUrl, headers) {
|
||||
let resRaw = await req(reqUrl, {
|
||||
method: 'get',
|
||||
headers: headers,
|
||||
});
|
||||
return resRaw;
|
||||
}
|
||||
|
||||
async function request(reqUrl) {
|
||||
let defHeader = {
|
||||
'User-Agent': MOBILE_UA,
|
||||
};
|
||||
let resRaw = await requestRaw(reqUrl, defHeader);
|
||||
return resRaw.content;
|
||||
}
|
||||
|
||||
// cfg = {skey: siteKey, ext: extend}
|
||||
async function init(cfg) {
|
||||
siteKey = cfg.skey;
|
||||
siteType = cfg.stype;
|
||||
if (cfg.hasOwnProperty('ext')) {
|
||||
if (cfg.ext.hasOwnProperty('categories')) {
|
||||
categories = cfg.ext.categories;
|
||||
}
|
||||
if (cfg.ext.hasOwnProperty('host')) {
|
||||
host = cfg.ext.host;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function home(filter) {
|
||||
let classes = [];
|
||||
if (categories.length > 0) {
|
||||
classes = categories.split('#');
|
||||
}
|
||||
classes.unshift('首页');
|
||||
const filterObj = {};
|
||||
return JSON.stringify({
|
||||
class: _.map(classes, (it) => {
|
||||
return {
|
||||
type_id: it,
|
||||
type_name: it,
|
||||
land: 1,
|
||||
ratio: 1.78,
|
||||
}
|
||||
}),
|
||||
filters: filterObj,
|
||||
});
|
||||
}
|
||||
|
||||
async function homeVod() {
|
||||
return '{}';
|
||||
}
|
||||
|
||||
async function category(tid, pg, filter, extend) {
|
||||
if (pg <= 0 || typeof pg == 'undefined') pg = 1;
|
||||
let url = '';
|
||||
if (tid == '首页') {
|
||||
url = host + '/api/live/getRecommendByPlatform?platform=huya&size=20&page=' + pg;
|
||||
} else {
|
||||
url = host + '/api/live/getRecommendByPlatformArea?platform=huya&size=20&area=' + tid + '&page=' + pg;
|
||||
}
|
||||
const data = JSON.parse(await request(url));
|
||||
let videos = _.map(data.data, (it) => {
|
||||
return {
|
||||
vod_id: it.roomId,
|
||||
vod_name: it.roomName,
|
||||
vod_pic: it.roomPic,
|
||||
vod_remarks: it.ownerName,
|
||||
}
|
||||
});
|
||||
return JSON.stringify({
|
||||
page: parseInt(pg),
|
||||
pagecount: 9999,
|
||||
limit: 90,
|
||||
total: 999999,
|
||||
list: videos,
|
||||
});
|
||||
}
|
||||
|
||||
async function detail(id) {
|
||||
const headers = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'User-Agent': MOBILE_UA,
|
||||
};
|
||||
const resp = await requestRaw('https://www.huya.com/' + id, headers);
|
||||
let liveData = null;
|
||||
let streamInfo = resp.content.match(/stream: ([\s\S]*?)\n/);
|
||||
if (streamInfo) {
|
||||
liveData = JSON.parse(streamInfo[1]);
|
||||
} else {
|
||||
streamInfo = resp.content.match(/"stream": "([\s\S]*?)"/);
|
||||
if (streamInfo) {
|
||||
let liveDataBase64 = streamInfo[1];
|
||||
liveData = JSON.parse(base64Decode(liveDataBase64));
|
||||
}
|
||||
}
|
||||
const vodData = liveData.data[0];
|
||||
const liveInfo = vodData.gameLiveInfo;
|
||||
let vod = {
|
||||
vod_id: id,
|
||||
vod_name: liveInfo.introduction,
|
||||
vod_pic: liveInfo.screenshot,
|
||||
vod_remarks: liveInfo.gameFullName,
|
||||
type_name: liveInfo.gameFullName,
|
||||
vod_director: liveInfo.nick,
|
||||
vod_actor: '',
|
||||
vod_content: liveInfo.activityCount + '人在线',
|
||||
vod_year: '',
|
||||
vod_area: '',
|
||||
};
|
||||
let streamInfoList = vodData.gameStreamInfoList;
|
||||
let vodList = [];
|
||||
let playUrl = '';
|
||||
for (const streamInfo of streamInfoList) {
|
||||
const hlsUrl = streamInfo.sHlsUrl + '/' + streamInfo.sStreamName + '.' + streamInfo.sHlsUrlSuffix;
|
||||
const srcAntiCode = unescape(streamInfo.sHlsAntiCode);
|
||||
let codeList = srcAntiCode.split('&');
|
||||
codeList = codeList.filter(code => code != '');
|
||||
let cryptoInfo = {};
|
||||
for (const code of codeList) {
|
||||
const [k, v] = code.split('=');
|
||||
cryptoInfo[k] = v;
|
||||
}
|
||||
const fm = unquote(cryptoInfo.fm);
|
||||
const fmDecoded = base64Decode(fm);
|
||||
const hashPrefix = fmDecoded.split('_')[0];
|
||||
const ctype = cryptoInfo.ctype || '';
|
||||
const txyp = cryptoInfo.txyp || '';
|
||||
const fs = cryptoInfo.fs || '';
|
||||
const t = cryptoInfo.t || '';
|
||||
const u = 1463993859134;
|
||||
const curTime = Date.now();
|
||||
const seqid = Math.floor(curTime + u);
|
||||
const wsTime = (Math.floor(curTime / 1e3) + 3600).toString(16);
|
||||
const v0 = seqid + '|' + ctype + '|' + t;
|
||||
const v1 = md5Encode(v0);
|
||||
const v2 = hashPrefix + '_' + u + '_' + streamInfo.sStreamName + '_' + v1 + '_' + wsTime;
|
||||
const hash = md5Encode(v2);
|
||||
const ratio = ''
|
||||
const purl = `${hlsUrl}?wsSecret=${hash}&wsTime=${wsTime}&seqid=${seqid}&ctype=${ctype}&ver=1&txyp=${txyp}&fs=${fs}&ratio=${ratio}&u=${u}&t=${t}&sv=2107230339`;
|
||||
playUrl += `${streamInfo.sCdnType}$${purl}#`;
|
||||
}
|
||||
vod.vod_play_from = 'huya';
|
||||
vod.vod_play_url = playUrl.replace(/#$/g, '');
|
||||
return JSON.stringify({
|
||||
list: [vod],
|
||||
});
|
||||
}
|
||||
|
||||
async function play(flag, id, flags) {
|
||||
return JSON.stringify({
|
||||
parse: 0,
|
||||
url: id,
|
||||
header: {
|
||||
"User-Agent": MOBILE_UA,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async function search(wd, quick) {
|
||||
return '{}';
|
||||
}
|
||||
|
||||
function unquote(str) {
|
||||
return str.replace(/^"(.*)"$/, '$1');
|
||||
}
|
||||
|
||||
function md5Encode(text) {
|
||||
return Crypto.MD5(Crypto.enc.Utf8.parse(text)).toString();
|
||||
}
|
||||
|
||||
function base64Decode(text) {
|
||||
return Crypto.enc.Utf8.stringify(Crypto.enc.Base64.parse(text));
|
||||
}
|
||||
|
||||
export function __jsEvalReturn() {
|
||||
return {
|
||||
init: init,
|
||||
home: home,
|
||||
homeVod: homeVod,
|
||||
category: category,
|
||||
detail: detail,
|
||||
play: play,
|
||||
search: search,
|
||||
};
|
||||
}
|
Binary file not shown.
BIN
jar/fm.jar
BIN
jar/fm.jar
Binary file not shown.
BIN
jar/fm.nogo.jar
BIN
jar/fm.nogo.jar
Binary file not shown.
4
js.json
4
js.json
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider":"./jar/fm.jar;md5;55e3c38d1624229c0905a470bee734f7",
|
||||
"spider":"./jar/fm.jar;md5;37e846d5e473d18852adad7478823fa6",
|
||||
"lives":[
|
||||
{"name":"live","type":0,"url":"./tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"},
|
||||
{"name":"live","type":0,"url":"https://xhdwc.tk/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"}
|
||||
|
@ -44,6 +44,8 @@
|
|||
{"key":"drpy_js_新片场","name":"新片 | 新片场[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/新片场.js"},
|
||||
{"key":"drpy_js_短剧网","name":"短剧 | 短剧网[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/短剧网.js"},
|
||||
{"key":"csp_YGP","name":"新片 | 预告片[jar]","type":3,"api":"csp_YGP","searchable":1,"quickSearch":1,"changeable":0},
|
||||
{"key":"荐片","name":"磁力 | 荐片","type":3,"api":"csp_Jianpian","searchable":1,"changeable":1,"ext":"./json/jianpian.json"},
|
||||
|
||||
{"key":"csp_Wobg","name":"阿里 | 玩偶表哥[jar]","type":3,"api":"csp_Wobg","searchable":1,"quickSearch":1,"changeable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.json", "timeout":30},
|
||||
|
||||
{"key":"csp_wogg_cli","name":"俊于 | 玩偶[T4]","type":4,"api":"http://home.jundie.top:9520/spider/csp_Wogg","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.txt", "timeout":30},
|
||||
|
|
1
jsm.json
1
jsm.json
|
@ -44,6 +44,7 @@
|
|||
{"key":"drpy_js_新片场","name":"新片 | 新片场[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/新片场.js"},
|
||||
{"key":"drpy_js_短剧网","name":"短剧 | 短剧网[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/短剧网.js"},
|
||||
{"key":"csp_YGP","name":"新片 | 预告片[jar]","type":3,"api":"csp_YGP","searchable":1,"quickSearch":1,"changeable":0},
|
||||
{"key":"荐片","name":"磁力 | 荐片","type":3,"api":"csp_Jianpian","searchable":1,"changeable":1,"ext":"./json/jianpian.json","jar":"./jar/fm.jar"},
|
||||
|
||||
{"key":"csp_Wobg","name":"阿里 | 玩偶表哥[jar]","type":3,"api":"csp_Wobg","searchable":1,"quickSearch":1,"changeable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.json", "timeout":30,"jar":"./jar/fm.jar"},
|
||||
|
||||
|
|
Loading…
Reference in New Issue