v-fixed14:顶部菜单新增「直播」— 港澳台51频道,无广告自研播放页,上游解码+无状态流反代(来源隐藏)
No files matched your search
@@ -2,6 +2,16 @@
|
||||
|
||||
格式参考本机发版惯例:按日期分条,`🐛修复` / `✨新功能`。
|
||||
|
||||
## 2026-10-26 → v-fixed14
|
||||
|
||||
- ✨ **顶部菜单新增「直播」**:51 个港澳台电视频道(凤凰卫视全系 / TVB 翡翠·明珠·无线新闻 / ViuTV / 有线新闻 / NOW 视闻台 / 东森 / 中天 / TVBS 等),点菜单直达 `/live` 播放页
|
||||
- ✨ **自研无广告播放页**:频道网格 + 16:9 播放器 + 多线路切换;FLV 走 mpegts.js、HLS 走 hls.js,两个播放器本地托管(`/hls.min.js`、`/mpegts.min.js`,挂载于 `public-live/`);线路失败自动切下一条
|
||||
- ✨ **接口族 `/api/tvbox?live=`**:`channels`(频道列表,1h 缓存)/ `lines`(线路解码,30min 缓存)/ `m3u8`(解析线路 → 跟随多级 302 → m3u8 分片改写为本站反代)/ `ts`(流反代,域名白名单防开放代理)
|
||||
- ✨ **上游线路动态解码**:上游播放页内联 JS 每页随机化函数名/变量名,按内容特征(keyStr base64 表、固定 XOR 盐)在 vm 沙箱内求值解码,`new Function` 兜底
|
||||
- 🔒 **来源隐藏**:页面与接口响应不含任何上游域名;播放数据全程经本站反代转发(浏览器网络面板只见 `192.168.68.19:3030`)
|
||||
- 🔒 **零广告**:播放页完全自研,上游页面的 googletagmanager / popunder / 51.la 统计等广告脚本全部不加载
|
||||
- 🔧 flv 长流反代超时放宽至 1h(20s 会掐断直播流);play.php 上游校验 Referer,反代自动携带
|
||||
|
||||
## 2026-10-10 → v-fixed13
|
||||
|
||||
- ✨ **TVBOX 全源聚合站点「全部资源」**:新增 `site=all`,搜索/浏览并行查全部 8 个启用源,按片名去重合并、按时间排序;详情带源标记(如 `dyttzyapi:124684`)自动路由回原源取播放链接
|
||||
|
||||
@@ -18,8 +18,11 @@ docker/katelyatv/
|
||||
│ ├── apply.sh # 一键重放补丁到运行中容器
|
||||
│ ├── app-api-tvbox-route.js # TVBOX 接口(聚合/筛选/分类)
|
||||
│ ├── app-api-filter-route.js# 筛选页接口(提速/分页)
|
||||
│ ├── routes-manifest.json # 路径式 TVBOX API rewrite
|
||||
│ └── filter-page-chunk.js # 筛选页前端去重
|
||||
│ ├── routes-manifest.json # 路径式 TVBOX API rewrite + /live rewrite
|
||||
│ ├── filter-page-chunk.js # 筛选页前端去重
|
||||
│ ├── live-inject.js # ★ 直播功能注入块(解码/反代/播放页)
|
||||
│ └── inject_live.py # 直播注入脚本(幂等可重跑)
|
||||
├── public-live/ # 直播页静态资产(hls.min.js / mpegts.min.js + 站点原 public,挂载 /app/public)
|
||||
├── README.md
|
||||
└── CHANGELOG.md # 更新日志
|
||||
```
|
||||
@@ -81,4 +84,12 @@ docker compose -f docker-compose.redis.yml up -d
|
||||
3. 其后 8 个单源站点可单独进入
|
||||
4. 顶级分类固定 7 个:香港电影 / 香港剧 / 电影 / 电视剧 / 综艺 / 动画片 / 动漫;点进分类后 OK 键弹出筛选:**子分类 / 年份 / 地区 / 排序**
|
||||
|
||||
## 电视直播(港澳台)
|
||||
|
||||
1. 顶部菜单点 **「直播」**(或浏览器打开 `http://192.168.68.19:3030/live`,需登录站点账号)
|
||||
2. 51 个港澳台频道:凤凰卫视全系、TVB 翡翠/明珠/无线新闻、ViuTV、有线新闻、NOW 视闻台、东森/中天/TVBS 等
|
||||
3. 左侧频道网格点选即播,右上角可切线路(线路失败自动跳下一条);FLV 与 HLS 双格式自动适配
|
||||
4. 页面自研无任何广告;播放数据全部经本站反代转发(`/api/tvbox?live=` 接口族),浏览器不接触任何第三方域名
|
||||
5. 重放直播补丁:`python3 patches/inject_live.py && docker restart katelyatv`(须在 compose up 之前跑,容器重建会回退到镜像内容——已固化进 fixed14 镜像)
|
||||
|
||||
详见 [CHANGELOG.md](CHANGELOG.md)。
|
||||
@@ -3,7 +3,7 @@ version: '3.8'
|
||||
services:
|
||||
# KatelyaTV 应用服务
|
||||
katelyatv:
|
||||
image: katelyatv:fixed13
|
||||
image: katelyatv:fixed14
|
||||
container_name: katelyatv
|
||||
ports:
|
||||
- "3030:3000"
|
||||
@@ -31,6 +31,8 @@ services:
|
||||
- katelyatv-redis
|
||||
volumes:
|
||||
- ./config.json:/app/config.json:ro
|
||||
# 直播页静态资产(hls.js / mpegts.js + 站点原静态文件)
|
||||
- ./public-live:/app/public
|
||||
restart: always
|
||||
networks:
|
||||
- katelyatv-network
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
#!/usr/bin/env python3
|
||||
"""注入直播功能到运行中容器(幂等可重跑):LIVE 函数块 + 入口拦截 + /live rewrite + 菜单项"""
|
||||
import subprocess, json, tempfile, os
|
||||
|
||||
P = "/app/.next/server/app/api/tvbox/route.js"
|
||||
RM = "/app/.next/routes-manifest.json"
|
||||
MC = "/app/.next/static/chunks/402-42ae253cc67eee98.js"
|
||||
BASE = os.path.dirname(os.path.abspath(__file__))
|
||||
MARK_S, MARK_E = "/* ==== LIVE:", "/* ==== LIVE END ==== */"
|
||||
HOOK = 'try{let _lv=new URL(e.url).searchParams.get("live");if(_lv)return await LIVE(_lv,e)}catch(_le){console.log("[LIVE-HOOK]",_le&&_le.message)}'
|
||||
|
||||
def read(p):
|
||||
return subprocess.run(["docker","exec","katelyatv","cat",p],capture_output=True,check=True).stdout.decode()
|
||||
|
||||
def write(p, data):
|
||||
r=subprocess.run(["docker","exec","-i","katelyatv","sh","-c",f"cat > {p}"],input=data.encode(),capture_output=True)
|
||||
assert r.returncode==0, r.stderr.decode()[:300]
|
||||
|
||||
# ---- 1) route.js: 删旧块+插新块+入口钩子 ----
|
||||
src = read(P)
|
||||
live = open(os.path.join(BASE, "live-inject.js")).read().strip()
|
||||
i, j = src.find(MARK_S), src.find(MARK_E)
|
||||
if i >= 0 and j > i:
|
||||
src = src[:i] + src[j+len(MARK_E)+1:]
|
||||
print("old LIVE block removed")
|
||||
anchor = "let _aggC=new Map();"
|
||||
assert src.count(anchor) == 1, "anchor A"
|
||||
if MARK_S not in src:
|
||||
src = src.replace(anchor, live + "\n" + anchor, 1)
|
||||
print("LIVE block injected")
|
||||
a = 'async function u(e){console.log("[TVBOX-REQ]",e.method,e.url);'
|
||||
assert src.count(a) == 1, "anchor B"
|
||||
if HOOK not in src:
|
||||
src = src.replace(a, a + HOOK, 1)
|
||||
print("entry hook injected")
|
||||
with tempfile.NamedTemporaryFile('w', suffix='.js', delete=False) as f:
|
||||
f.write(src); tmp = f.name
|
||||
r = subprocess.run(['node', '--check', tmp], capture_output=True, text=True)
|
||||
os.unlink(tmp)
|
||||
assert r.returncode == 0, r.stderr[:600]
|
||||
write(P, src)
|
||||
print("route.js OK")
|
||||
|
||||
# ---- 2) rewrite /live ----
|
||||
rm = json.loads(read(RM))
|
||||
af = rm.get("rewrites", {}).get("afterFiles", [])
|
||||
if not any(x.get("source") == "/live" for x in af):
|
||||
af.append({"source": "/live", "destination": "/api/tvbox?live=page", "regex": "^/live$"})
|
||||
rm["rewrites"]["afterFiles"] = af
|
||||
write(RM, json.dumps(rm, ensure_ascii=False))
|
||||
print("rewrite /live added")
|
||||
|
||||
# ---- 3) 菜单 ----
|
||||
mc = read(MC)
|
||||
if '"直播"' not in mc:
|
||||
old = '{icon:o.Z,label:"综艺",href:"/douban?type=show"}'
|
||||
n = mc.count(old)
|
||||
assert n == 2, f"menu anchor {n}"
|
||||
mc = mc.replace(old, old + ',{icon:o.Z,label:"直播",href:"/live"}')
|
||||
write(MC, mc)
|
||||
print(f"menu injected x{n}")
|
||||
|
||||
print("DONE - restart container to apply")
|
||||
@@ -0,0 +1,169 @@
|
||||
/* ==== LIVE: 港澳台电视直播(注入片段,纯函数,无模块依赖) ==== */
|
||||
const LIVE_UP="https://m.iptv807.com";
|
||||
let _liveVm=null;try{_liveVm=require("vm")}catch(e){}
|
||||
const LIVE_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1";
|
||||
const LIVE_HOSTS=/(^|\.)(iptv200\.com|2026016\.xyz)$/;
|
||||
const liveCh={ts:0,list:null},liveLn=new Map(),liveRv=new Map();
|
||||
async function liveText(u,ms){const c=new AbortController();const t=setTimeout(()=>c.abort(),ms||15000);
|
||||
try{const r=await fetch(u,{redirect:"follow",signal:c.signal,headers:{"User-Agent":LIVE_UA,"Referer":LIVE_UP+"/"}});return await r.text()}finally{clearTimeout(t)}}
|
||||
async function liveChannels(){
|
||||
if(liveCh.list&&Date.now()-liveCh.ts<3600e3)return liveCh.list;
|
||||
const h=await liveText(LIVE_UP+"/?tid=gt");const seen=new Set(),list=[];
|
||||
for(const m of h.matchAll(/href="\?act=play&(?:amp;)?tid=gt&(?:amp;)?id=(\d+)"[^>]*>\s*([^<]+?)\s*</g)){
|
||||
if(!seen.has(m[1])){seen.add(m[1]);list.push({id:m[1],name:m[2]})}}
|
||||
if(list.length){liveCh.list=list;liveCh.ts=Date.now()}return list||[]}
|
||||
async function liveLines(id){
|
||||
const c=liveLn.get(id);if(c&&Date.now()-c.ts<1800e3)return c.lines;
|
||||
const h=await liveText(LIVE_UP+"/?act=play&tid=gt&id="+encodeURIComponent(id));
|
||||
const blocks=[...h.matchAll(/<script>([\s\S]*?)<\/script>/g)].map(m=>m[1])
|
||||
.filter(s=>/keyStr|reverse\(\)\.join/.test(s)&&/function|var /.test(s));
|
||||
let ctx={};
|
||||
if(_liveVm){
|
||||
ctx=_liveVm.createContext({});
|
||||
for(const s of blocks){try{_liveVm.runInContext(s,ctx)}catch(e){console.log("[LIVE-BLK-VM]",e&&e.message)}}
|
||||
}else{
|
||||
for(const s of blocks){
|
||||
try{
|
||||
const names=[...s.matchAll(/function\s+(\w+)\s*\(/g)].map(m=>m[1]);
|
||||
const vars=[...s.matchAll(/var\s+(\w+)/g)].map(m=>m[1]);
|
||||
const uniq=[...new Set(names.concat(vars))];
|
||||
const fn=new Function(s+"\nvar __o={};"+uniq.map(n=>"try{__o."+n+"="+n+"}catch(e){}").join("")+"\nreturn __o;");
|
||||
Object.assign(ctx,fn());
|
||||
}catch(e){console.log("[LIVE-BLK-FN]",e&&e.message)}}
|
||||
}
|
||||
const fns=Object.keys(ctx).filter(k=>typeof ctx[k]==="function");
|
||||
const dec=fns.find(k=>/replace\(["']token=/.test(ctx[k].toString()));
|
||||
console.log("[LIVE-LINES]",id,"blocks="+blocks.length,"fns="+fns.length,"dec="+dec);
|
||||
if(!dec)throw new Error("decoder unavailable");
|
||||
const lines=[...h.matchAll(/<option value="([^"]+)"[^>]*>([^<]+)</g)].map(o=>{let url="";
|
||||
try{url=ctx[dec](o[1])}catch(e){console.log("[LIVE-DEC-ERR]",e&&e.message)}
|
||||
return{name:o[2],url}}).filter(l=>/^https?:\/\//.test(l.url));
|
||||
console.log("[LIVE-LINES]",id,"lines="+lines.length,lines[0]?lines[0].url.slice(0,70):"");
|
||||
if(lines.length)liveLn.set(id,{ts:Date.now(),lines});return lines}
|
||||
async function liveResolve(id,p){
|
||||
const key=id+"|"+p;const c=liveRv.get(key);if(c&&Date.now()-c.ts<20000)return c.finalUrl;
|
||||
const lines=await liveLines(id);const ln=lines[p]||lines[0];if(!ln)throw new Error("no line");
|
||||
console.log("[LIVE-RS] fetch",ln.url.slice(0,70));
|
||||
const ctl=new AbortController();const tm=setTimeout(()=>ctl.abort(),20000);
|
||||
try{const r=await fetch(ln.url,{redirect:"follow",signal:ctl.signal,headers:{"User-Agent":LIVE_UA,"Referer":LIVE_UP+"/"}});
|
||||
console.log("[LIVE-RS] final",r.status,r.url.slice(0,70));
|
||||
if(r.body)try{await r.body.cancel()}catch(e){}
|
||||
console.log("[LIVE-RS] cancelled");
|
||||
const uu=new URL(r.url);if(!LIVE_HOSTS.test(uu.hostname))throw new Error("bad host");
|
||||
liveRv.set(key,{ts:Date.now(),finalUrl:r.url});return r.url}finally{clearTimeout(tm)}}
|
||||
function liveB64e(s){return Buffer.from(s,"utf8").toString("base64url")}
|
||||
function liveB64d(s){return Buffer.from(s,"base64url").toString("utf8")}
|
||||
function liveJ(o){return new Response(JSON.stringify(o),{headers:{"Content-Type":"application/json","Cache-Control":"no-store"}})}
|
||||
function livePage(){
|
||||
const html=`<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
|
||||
<title>电视直播 · 港澳台</title><style>
|
||||
:root{color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0}
|
||||
body{background:#0f1115;color:#e5e7eb;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;min-height:100vh}
|
||||
.hd{position:sticky;top:0;z-index:9;background:rgba(15,17,21,.92);backdrop-filter:blur(8px);padding:10px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #1f2430}
|
||||
.hd a{color:#9ca3af;text-decoration:none;font-size:24px;line-height:1}
|
||||
.hd h1{font-size:17px;font-weight:600}
|
||||
.wrap{max-width:1100px;margin:0 auto;padding:14px;display:flex;flex-direction:column;gap:14px}
|
||||
@media(min-width:820px){.wrap{flex-direction:row}.side{width:300px;flex:none;max-height:78vh;overflow:auto}.main{flex:1}}
|
||||
.player-box{background:#000;border-radius:10px;overflow:hidden;aspect-ratio:16/9;position:relative}
|
||||
video{width:100%;height:100%;display:block;background:#000}
|
||||
.tip{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:14px;pointer-events:none;background:rgba(0,0,0,.35)}
|
||||
.bar{display:flex;align-items:center;gap:10px;font-size:13px;color:#9ca3af}
|
||||
.bar .cur{color:#fff;font-weight:600;font-size:15px}
|
||||
select{background:#171b24;color:#e5e7eb;border:1px solid #2a3140;border-radius:6px;padding:5px 8px;font-size:13px}
|
||||
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
|
||||
.ch{background:#171b24;border:1px solid #232936;color:#d1d5db;padding:10px 6px;border-radius:8px;font-size:13px;text-align:center;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:.15s}
|
||||
.ch:hover{border-color:#3b82f6;color:#fff}
|
||||
.ch.on{background:#1d4ed8;border-color:#3b82f6;color:#fff}
|
||||
.sec{font-size:13px;color:#6b7280;margin:2px 0 8px}
|
||||
.empty{color:#6b7280;font-size:13px;padding:20px 0;text-align:center}
|
||||
</style></head><body>
|
||||
<div class="hd"><a href="/" >‹</a><h1>电视直播 · 港澳台</h1></div>
|
||||
<div class="wrap">
|
||||
<div class="main">
|
||||
<div class="player-box"><video id="v" playsinline></video><div class="tip" id="tip">选择频道开始观看</div></div>
|
||||
<div class="bar" style="margin-top:10px"><span class="cur" id="cur">未选择</span><span style="flex:1"></span>
|
||||
<label>线路 <select id="lineSel" onchange="playLine(this.value)"></select></label></div>
|
||||
</div>
|
||||
<div class="side"><div class="sec">频道列表</div><div class="grid" id="grid"><div class="empty">加载中…</div></div></div>
|
||||
</div>
|
||||
<script src="/hls.min.js"></script><script src="/mpegts.min.js"></script><script>
|
||||
var hls=null,mp=null,chs=[],curId=null;
|
||||
var v=document.getElementById('v'),tip=document.getElementById('tip'),
|
||||
grid=document.getElementById('grid'),sel=document.getElementById('lineSel'),
|
||||
cur=document.getElementById('cur');
|
||||
var API='/api/tvbox?live=';
|
||||
function stopAll(){if(hls){hls.destroy();hls=null}if(mp){mp.destroy();mp=null}try{v.removeAttribute('src');v.load()}catch(e){}}
|
||||
function playSrc(u,flv){
|
||||
stopAll();
|
||||
if(flv&&window.mpegts){try{mp=mpegts.createPlayer({type:'flv',isLive:true,url:u,liveBufferLatencyChasing:true});mp.attachMediaElement(v);mp.load()}catch(e){}}
|
||||
else if(/\\.m3u8/.test(u)){
|
||||
if(v.canPlayType('application/vnd.apple.mpegurl')){v.src=u}
|
||||
else if(window.Hls&&Hls.isSupported()){hls=new Hls({maxBufferLength:10,manifestLoadingMaxRetry:2,levelLoadingMaxRetry:2,fragLoadingMaxRetry:3});
|
||||
hls.loadSource(u);hls.attachMedia(v);
|
||||
hls.on(Hls.Events.ERROR,function(e,d){if(d.fatal){if(d.type===Hls.ErrorTypes.NETWORK_ERROR){hls.startLoad()}else if(d.type===Hls.ErrorTypes.MEDIA_ERROR){hls.recoverMediaError()}else{nextLine()}}})}
|
||||
}else if(/\\.flv/.test(u)&&window.mpegts){try{mp=mpegts.createPlayer({type:'flv',isLive:true,url:u});mp.attachMediaElement(v);mp.load()}catch(e){}}
|
||||
v.play().catch(function(){});
|
||||
setTimeout(function(){if(v.readyState<2)tip.style.display='flex'},2500);
|
||||
v.onplaying=function(){tip.style.display='none'};
|
||||
}
|
||||
function nextLine(){if(sel.options.length&&+sel.value<sel.options.length-1){sel.value=+sel.value+1;playLine(sel.value)}else{tip.textContent='所有线路暂不可用';tip.style.display='flex'}}
|
||||
window.nextLine=nextLine;
|
||||
function playLine(p){
|
||||
if(!curId)return;
|
||||
tip.textContent='加载中…';tip.style.display='flex';
|
||||
fetch(API+'m3u8&id='+curId+'&p='+p).then(function(r){return r.json()}).then(function(j){
|
||||
if(j.url){cur.textContent=(chs.find(function(c){return c.id==curId})||{}).name||'';playSrc(j.url,!!j.flv)}
|
||||
else{nextLine()}
|
||||
}).catch(function(){nextLine()});
|
||||
}
|
||||
window.playLine=playLine;
|
||||
function pick(id){
|
||||
curId=id;
|
||||
document.querySelectorAll('.ch.on').forEach(function(e){e.classList.remove('on')});
|
||||
var el=document.querySelector('.ch[data-id="'+id+'"]');if(el)el.classList.add('on');
|
||||
sel.innerHTML='';tip.textContent='加载线路…';tip.style.display='flex';
|
||||
fetch(API+'lines&id='+id).then(function(r){return r.json()}).then(function(j){
|
||||
(j.lines||[]).forEach(function(l,i){var o=document.createElement('option');o.value=i;o.textContent=l.name;sel.appendChild(o)});
|
||||
if((j.lines||[]).length){sel.value=0;playLine(0)}else{tip.textContent='暂无可用线路'}
|
||||
}).catch(function(){tip.textContent='线路解析失败'});
|
||||
}
|
||||
fetch(API+'channels').then(function(r){return r.json()}).then(function(j){
|
||||
chs=j.list||[];
|
||||
if(!chs.length){grid.innerHTML='<div class="empty">暂无频道</div>';return}
|
||||
grid.innerHTML='';
|
||||
chs.forEach(function(c){var d=document.createElement('div');d.className='ch';d.dataset.id=c.id;d.textContent=c.name;
|
||||
d.onclick=function(){pick(c.id)};grid.appendChild(d)});
|
||||
}).catch(function(){grid.innerHTML='<div class="empty">加载失败,请刷新</div>'});
|
||||
</script></body></html>`;
|
||||
return new Response(html,{headers:{"Content-Type":"text/html; charset=utf-8","Cache-Control":"no-store"}})}
|
||||
async function LIVE(action,e){
|
||||
try{
|
||||
if(action==="page")return livePage();
|
||||
if(action==="channels")return liveJ({list:await liveChannels()});
|
||||
const q=new URL(e.url).searchParams;
|
||||
if(action==="lines"){const id=(q.get("id")||"").replace(/[^\d]/g,"");if(!id)return liveJ({lines:[]});
|
||||
const lines=await liveLines(id);return liveJ({lines:lines.map(l=>({name:l.name}))})}
|
||||
if(action==="m3u8"){const id=(q.get("id")||"").replace(/[^\d]/g,"");const p=Math.max(0,parseInt(q.get("p")||"0",10)||0);
|
||||
if(!id)return liveJ({url:""});
|
||||
const fu=await liveResolve(id,p);
|
||||
if(/\.flv($|\?)/i.test(fu))return liveJ({url:"/api/tvbox?live=ts&b="+liveB64e(fu),flv:1});
|
||||
const txt=await liveText(fu,10000);
|
||||
if(!/#EXTM3U/.test(txt))return liveJ({url:""});
|
||||
const out=txt.split("\\n").map(line=>{const t=line.trim();if(!t||t[0]==="#")return line;
|
||||
try{const abs=new URL(t,fu);if(!LIVE_HOSTS.test(abs.hostname))return line;
|
||||
return"/api/tvbox?live=ts&b="+liveB64e(abs.toString())}catch(err){return line}}).join("\\n");
|
||||
return new Response(out,{headers:{"Content-Type":"application/vnd.apple.mpegurl","Cache-Control":"no-store"}})}
|
||||
if(action==="ts"){const b=q.get("b")||"";let uu;try{uu=new URL(liveB64d(b))}catch(err){return new Response("bad",{status:400})}
|
||||
if(!/^https?:$/.test(uu.protocol)||!LIVE_HOSTS.test(uu.hostname))return new Response("forbidden",{status:403});
|
||||
const isFlv=/\.flv($|\?)/i.test(uu.href);
|
||||
const ctl=new AbortController();const tm=setTimeout(()=>ctl.abort(),isFlv?3600e3:20000);
|
||||
try{const r=await fetch(uu.toString(),{redirect:"follow",signal:ctl.signal,headers:{"User-Agent":LIVE_UA}});
|
||||
const hs={"Content-Type":r.headers.get("content-type")||"video/mp2t","Access-Control-Allow-Origin":"*","Cache-Control":"no-store"};
|
||||
return new Response(r.body,{status:r.status,headers:hs})}finally{clearTimeout(tm)}}
|
||||
return new Response("not found",{status:404})
|
||||
}catch(x){console.log("[LIVE-ERR]",x&&x.message);
|
||||
if(action==="m3u8")return liveJ({url:"",err:String(x&&x.message||x)});
|
||||
if(action==="lines"||action==="channels")return liveJ({list:[],lines:[]});
|
||||
return new Response("error",{status:500})}}
|
||||
/* ==== LIVE END ==== */
|
||||
|
After Width: | Height: | Size: 9.4 KiB |
@@ -0,0 +1,4 @@
|
||||
!function e(t){var r,i;r=this,i=function(){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function i(e,t,r,i,n,a,s){try{var o=e[a](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(i,n)}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,y(i.key),i)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return r(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}(e))||t){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},l.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}function v(){
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||||
var e,t,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function a(r,i,n,a){var l=i&&i.prototype instanceof o?i:o,u=Object.create(l.prototype);return m(u,"_invoke",function(r,i,n){var a,o,l,u=0,d=n||[],h=!1,f={p:0,n:0,v:e,a:c,f:c.bind(e,4),d:function(t,r){return a=t,o=0,l=e,f.n=r,s}};function c(r,i){for(o=r,l=i,t=0;!h&&u&&!n&&t<d.length;t++){var n,a=d[t],c=f.p,g=a[2];r>3?(n=g===i)&&(l=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=c&&((n=r<2&&c<a[1])?(o=0,f.v=i,f.n=a[1]):c<g&&(n=r<3||a[0]>i||i>g)&&(a[4]=r,a[5]=i,f.n=g,o=0))}if(n||r>1)return s;throw h=!0,i}return function(n,d,g){if(u>1)throw TypeError("Generator is already running");for(h&&1===d&&c(d,g),o=d,l=g;(t=o<2?e:l)||!h;){a||(o?o<3?(o>1&&(f.n=-1),c(o,l)):f.n=l:f.v=l);try{if(u=2,a){if(o||(n="next"),t=a[n]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),o=1);a=e}else if((t=(h=f.n<0)?l:r.call(i,f))!==s)break}catch(t){a=e,o=1,l=t}finally{u=1}}return{value:t,done:h}}}(r,n,a),!0),u}var s={};function o(){}function l(){}function u(){}t=Object.getPrototypeOf;var d=[][i]?t(t([][i]())):(m(t={},i,(function(){return this})),t),h=u.prototype=o.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,m(e,n,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=u,m(h,"constructor",u),m(u,"constructor",l),l.displayName="GeneratorFunction",m(u,n,"GeneratorFunction"),m(h),m(h,n,"Generator"),m(h,i,(function(){return this})),m(h,"toString",(function(){return"[object Generator]"})),(v=function(){return{w:a,m:f}})()}function m(e,t,r,i){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}m=function(e,t,r,i){function a(t,r){m(e,t,(function(e){return this._invoke(t,r,e)}))}t?n?n(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},m(e,t,r,i)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e){var t="function"==typeof Map?new Map:void 0;return E=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(h())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var n=new(e.bind.apply(e,i));return r&&p(n,r.prototype),n}(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},E(e)}function T(e){return e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer}var S="utf-16",A="utf-16be",I="utf-16le",L="utf-8";function R(e,t){if(e<0)return-R(-e,t);var r=Math.pow(10,t);if(Math.abs(e*r%1-.5)<Number.EPSILON){var i=Math.floor(e*r);return(i%2==0?i:i+1)/r}return Math.round(e*r)/r}function b(){try{return crypto.randomUUID()}catch(i){try{var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)}))}}}function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D,P,_={exports:{}},C=(D||(D=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function i(){}function n(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,i,a,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new n(i,a||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),o.prototype.eventNames=function(){var e,i,n=[];if(0===this._eventsCount)return n;for(i in e=this._events)t.call(e,i)&&n.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e){var t=r?r+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,a=i.length,s=new Array(a);n<a;n++)s[n]=i[n].fn;retLine truncated
|
||||
//# sourceMappingURL=hls.min.js.map
|
||||
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 296 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "KatelyaTV",
|
||||
"short_name": "KatelyaTV",
|
||||
"description": "影视聚合",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#000000",
|
||||
"apple-mobile-web-app-capable": "yes",
|
||||
"apple-mobile-web-app-status-bar-style": "black",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mpegts=t():e.mpegts=t()}(window,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=20)}([function(e,t,i){"use strict";var n=i(9),a=i.n(n),r=function(){function e(){}return e.e=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","error",n),e.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))},e.i=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","info",n),e.ENABLE_INFO&&(console.info?console.info(n):console.log(n))},e.w=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",n),e.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))},e.d=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",n),e.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))},e.v=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",n),e.ENABLE_VERBOSE&&console.log(n)},e}();r.GLOBAL_TAG="mpegts.js",r.FORCE_GLOBAL_TAG=!1,r.ENABLE_ERROR=!0,r.ENABLE_INFO=!0,r.ENABLE_WARN=!0,r.ENABLE_DEBUG=!0,r.ENABLE_VERBOSE=!0,r.ENABLE_CALLBACK=!1,r.emitter=new a.a,t.a=r},function(e,t,i){"use strict";var n;!function(e){e.IO_ERROR="io_error",e.DEMUX_ERROR="demux_error",e.INIT_SEGMENT="init_segment",e.MEDIA_SEGMENT="media_segment",e.LOADING_COMPLETE="loading_complete",e.RECOVERED_EARLY_EOF="recovered_early_eof",e.MEDIA_INFO="media_info",e.METADATA_ARRIVED="metadata_arrived",e.SCRIPTDATA_ARRIVED="scriptdata_arrived",e.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",e.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",e.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",e.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",e.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",e.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",e.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",e.STATISTICS_INFO="statistics_info",e.RECOMMEND_SEEKPOINT="recommend_seekpoint"}(n||(n={})),t.a=n},function(e,t,i){"use strict";i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i(3),a={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},r={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},o=function(){function e(e){this._type=e||"undefined",this._status=a.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return e.prototype.destroy=function(){this._status=a.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},e.prototype.isWorking=function(){return this._status===a.kConnecting||this._status===a.kBuffering},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onLine truncated
|
||||
/*!
|
||||
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||||
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||||
* @license Licensed under MIT license
|
||||
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||||
* @version v4.2.8+1e68dce6
|
||||
*/var n;n=function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=0,r=void 0,o=void 0,s=function(e,t){f[a]=e,f[a+1]=t,2===(a+=2)&&(o?o(p):S())},d="undefined"!=typeof window?window:void 0,_=d||{},c=_.MutationObserver||_.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(p,1)}}var f=new Array(1e3);function p(){for(var e=0;e<a;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;a=0}var m,g,v,y,S=void 0;function b(e,t){var i=this,n=new this.constructor(R);void 0===n[E]&&I(n);var a=i._state;if(a){var r=arguments[a-1];s((function(){return O(a,n,r,i._result)}))}else C(i,n,e,t);return n}function A(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(R);return L(t,e),t}h?S=function(){return t.nextTick(p)}:c?(g=0,v=new c(p),y=document.createTextNode(""),v.observe(y,{characterData:!0}),S=function(){y.data=g=++g%2}):l?((m=new MessageChannel).port1.onmessage=p,S=function(){return m.port2.postMessage(0)}):S=void 0===d?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(p)}:u()}catch(e){return u()}}():u();var E=Math.random().toString(36).substring(2);function R(){}function T(t,i,n){i.constructor===t.constructor&&n===b&&i.constructor.resolve===A?function(e,t){1===t._state?w(e,t._result):2===t._state?M(e,t._result):C(t,void 0,(function(t){return L(e,t)}),(function(t){return M(e,t)}))}(t,i):void 0===n?w(t,i):e(n)?function(e,t,i){s((function(e){var n=!1,a=function(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}(i,t,(function(i){n||(n=!0,t!==i?L(e,i):w(e,i))}),(function(t){n||(n=!0,M(e,t))}),e._label);!n&&a&&(n=!0,M(e,a))}),e)}(t,i,n):w(t,i)}function L(e,t){if(e===t)M(e,new TypeError("You cannot resolve a promise with itself"));else if(a=typeof(n=t),null===n||"object"!==a&&"function"!==a)w(e,t);else{var i=void 0;try{i=t.then}catch(t){return void M(e,t)}T(e,t,i)}var n,a}function k(e){e._onerror&&e._onerror(e._result),D(e)}function w(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(D,e))}function M(e,t){void 0===e._state&&(e._state=2,e._result=t,s(k,e))}function C(e,t,i,n){var a=e._subscribers,r=a.length;e._onerror=null,a[r]=t,a[r+1]=i,a[r+2]=n,0===r&&e._state&&s(D,e)}function D(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var n=void 0,a=void 0,r=e._result,o=0;o<t.length;o+=3)n=t[o],a=t[o+i],n?O(i,n,a,r):a(r);e._subscribers.length=0}}function O(t,i,n,a){var r=e(n),o=void 0,s=void 0,d=!0;if(r){try{o=n(a)}catch(e){d=!1,s=e}if(i===o)return void M(i,new TypeError("A promises callback cannot return that same promise."))}else o=a;void 0!==i._state||(r&&d?L(i,o):!1===d?M(i,s):1===t?w(i,o):2===t&&M(i,o))}var B=0;function I(e){e[E]=B++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(R),this.promise[E]||I(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&w(this.promise,this._result))):M(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===A){var a=void 0,r=void 0,o=!1;try{a=e.then}catch(e){o=!0,r=e}if(a===b&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof a)this._remaining--,this._result[t]=e;else if(i===x){var s=new i(R);o?M(s,r):T(s,e,a),this._willSettleAt(s,t)}else this._willSettleAt(new i((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,i){var n=this.promise;void 0===n._state&&(this._remaining--,2===e?M(n,i):this._result[t]=i),0===this._remaining&&w(n,this._result)},e.prototype._willSettleAt=function(e,t){var i=this;C(e,void 0,(function(e){return i._settledAt(1,t,e)}),(function(e){return i._settledAt(2,t,e)}))},e}(),x=function(){function t(e){this[E]=B++,this._result=this._state=void 0,this._subscribers=[],R!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){L(e,t)}),(function(t){M(e,t)}))}catch(t){M(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var i=this.constructor;returLine truncated
|
||||
//# sourceMappingURL=mpegts.js.map
|
||||
@@ -0,0 +1,3 @@
|
||||
# 禁止所有搜索引擎爬取
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 737 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 727 KiB |
@@ -0,0 +1 @@
|
||||
if(!self.define){let e,s={};const n=(n,t)=>(n=new URL(n+".js",t).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,a)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let i={};const r=e=>n(e,c),d={module:{uri:c},exports:i,require:r};s[c]=Promise.all(t.map(e=>d[e]||r(e))).then(e=>(a(...e),i))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"91f275d530cb6b9f82b3f622107ba69f"},{url:"/_next/static/VzjdBH-1tWUTABuCZb9nx/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/VzjdBH-1tWUTABuCZb9nx/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/151-8711dd3ec7fbfa61.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/242-5a0502f47346ed4a.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/256-f3994669d49867be.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/273-fffc7e5390a1c642.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/402-42ae253cc67eee98.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/609-46d66c37b95adf6a.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/78-b091442d784a205f.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/866-7f5b3d6941560701.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/_not-found/page-2f2263c5b98c190a.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/admin/page-82bf968fc882a918.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/config/page-c5444985ef9acb1a.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/douban/page-8ab598f0d244e9ae.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/filter/page-4d01a87b20ac1a73.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/layout-1bfded55fc31a332.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/login/page-47c06d2438938131.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/page-1a01a64271e1f47e.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/play/page-89b0997603e2bb9c.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/search/page-fe31cf3d4e57ebfd.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/settings/page-031109c02196f08e.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/tvbox/page-adec05c5925c4c37.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/b145b63a-d75d6adf389a7589.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/main-19765309852faad8.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/main-app-2cdcfd0e548fd0e6.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-f732225cafd52a05.js",revision:"VzjdBH-1tWUTABuCZb9nx"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/86f54169992d5771.css",revision:"86f54169992d5771"},{url:"/_next/static/css/da6e9b4a73108890.css",revision:"da6e9b4a73108890"},{url:"/_next/static/media/19cfc7226ec3afaa-s.woff2",revision:"9dda5cfc9a46f256d0e131bb535e46f8"},{url:"/_next/static/media/21350d82a1f187e9-s.woff2",revision:"4e2553027f1d60eff32898367dd4d541"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/ba9851c3c22cd980-s.woff2",revision:"9e494903d6b0ffec1a1e14d34427d44d"},{url:"/_next/static/media/c5fe6dc8356a8c31-s.woff2",revision:"027a89e9ab733a145db70f09b8a18b42"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/favicon.ico",revision:"c5de6e56c5664adda146825f75ea6ecf"},{url:"/icons/icon-192x192.png",revision:"4a56c090828a1ad254c903c7aec0389d"},{url:"/icons/icon-256x256.png",revision:"f6409eb1a001f754121e3a8281c0319c"},{url:"/icLine truncated
|
||||
|
After Width: | Height: | Size: 111 KiB |
@@ -0,0 +1 @@
|
||||
define(["exports"],function(t){"use strict";try{self["workbox:core:6.5.4"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.4"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super(({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)},e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)})}addCacheListener(){self.addEventListener("message",t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map(e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})}));t.waitUntil(s),t.ports&&t.ports[0]&&s.then(()=>t.ports[0].postMessage(!0))}})}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=i&&i.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:r})}catch(t){c=Promise.reject(t)}const h=i&&i.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch(async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n})),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const a=i.match({url:t,sameOrigin:e,request:s,event:n});if(a)return r=a,(Array.isArray(r)&&0===r.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new r(({url:t})=>t.href===s.href,e,n)}else if(t instanceof RegExp)a=new i(t,e,n);else if("function"==typeof t)a=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}try{self["workbox:strategies:6.5.4"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter(t=>t&&t.length>0).join("-"),w=t=>t||f(l.precache),d=t=>t||f(l.runtime);function p(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class y{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}const g=new Set;function m(t){return"string"==typeof t?new Request(t):t}class v{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new y,this.p=[],this.m=[...t.plugins],this.v=new Map;for(const t of this.m)this.v.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=m(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=m(t);let s;const{cacheName:n,matchOptions:r}=this.u,i=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,a);for(const t of this.iterateCLine truncated
|
||||