diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts index ca2a282..67c290b 100644 --- a/src/app/api/search/route.ts +++ b/src/app/api/search/route.ts @@ -72,13 +72,13 @@ export async function GET(request: NextRequest) { if (metaInfo && metaInfo.folders) { openlistResults = Object.entries(metaInfo.folders) - .filter(([key, info]: [string, any]) => { - const matchFolder = info.folderName.toLowerCase().includes(query.toLowerCase()); + .filter(([folderName, info]: [string, any]) => { + const matchFolder = folderName.toLowerCase().includes(query.toLowerCase()); const matchTitle = info.title.toLowerCase().includes(query.toLowerCase()); return matchFolder || matchTitle; }) - .map(([key, info]: [string, any]) => ({ - id: key, + .map(([folderName, info]: [string, any]) => ({ + id: folderName, source: 'openlist', source_name: '私人影库', title: info.title, diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index e5dd37d..71a951a 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -5214,10 +5214,10 @@ function PlayPageClient() { {/* 豆瓣推荐区域 */} {videoDoubanId !== 0 && enableComments && ( -