From 6d046aea0a3c7be4891bbd0672affa3f1048f554 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Sat, 3 Jan 2026 19:15:50 +0800 Subject: [PATCH] =?UTF-8?q?emby=E4=BF=9D=E7=95=99=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/admin/source/route.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/api/admin/source/route.ts b/src/app/api/admin/source/route.ts index 11d8845..88ef61a 100644 --- a/src/app/api/admin/source/route.ts +++ b/src/app/api/admin/source/route.ts @@ -65,13 +65,19 @@ export async function POST(request: NextRequest) { if (!key || !name || !api) { return NextResponse.json({ error: '缺少必要参数' }, { status: 400 }); } - // 禁止添加 openlist 保留关键字 + // 禁止添加 openlist 和 emby 保留关键字 if (key === 'openlist') { return NextResponse.json( { error: 'openlist 是保留关键字,不能作为视频源 key' }, { status: 400 } ); } + if (key === 'emby') { + return NextResponse.json( + { error: 'emby 是保留关键字,不能作为视频源 key' }, + { status: 400 } + ); + } if (adminConfig.SourceConfig.some((s) => s.key === key)) { return NextResponse.json({ error: '该源已存在' }, { status: 400 }); }