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 && ( -
+
{/* 标题 */} -
+

@@ -5227,7 +5227,7 @@ function PlayPageClient() {

{/* 推荐内容 */} -
+
@@ -5236,10 +5236,10 @@ function PlayPageClient() { {/* 豆瓣评论区域 */} {videoDoubanId !== 0 && enableComments && ( -
+
{/* 标题 */} -
+

@@ -5249,7 +5249,7 @@ function PlayPageClient() {

{/* 评论内容 */} -
+
diff --git a/src/components/DoubanRecommendations.tsx b/src/components/DoubanRecommendations.tsx index 2301463..7f4c564 100644 --- a/src/components/DoubanRecommendations.tsx +++ b/src/components/DoubanRecommendations.tsx @@ -112,7 +112,7 @@ export default function DoubanRecommendations({ doubanId }: DoubanRecommendation } return ( - + {recommendations.map((rec) => (
(null); const [showLeftScroll, setShowLeftScroll] = useState(false); @@ -102,7 +104,7 @@ export default function ScrollableRow({ >
{children}