完善tv电视直播

This commit is contained in:
mtvpls
2026-05-30 20:57:40 +08:00
parent 772db95d59
commit 30c46fdebd
4 changed files with 246 additions and 23 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export const runtime = 'nodejs';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const imageUrl = searchParams.get('url');
const source = searchParams.get('moontv-source');
const source = searchParams.get('moontv-source') || searchParams.get('source');
if (!imageUrl) {
return NextResponse.json({ error: 'Missing image URL' }, { status: 400 });