diff --git a/README.md b/README.md
index 2a2a60f..4606867 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# KVideo
+# 视频聚合平台 (KVideo)

@@ -46,6 +46,7 @@
### 🎬 豆瓣集成
+- **电影 & 电视剧分类**:支持在电影和电视剧之间无缝切换,方便查找不同类型的影视资源
- **详细影视信息**:自动获取豆瓣评分、演员阵容、剧情简介等详细信息
- **推荐系统**:基于豆瓣数据的相关推荐
- **专业评价**:展示豆瓣用户评价和专业影评
@@ -125,9 +126,9 @@ docker run -d -p 3000:3000 -e ACCESS_PASSWORD=your_secret_password --name kvideo
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
-| `NEXT_PUBLIC_SITE_TITLE` | 浏览器标签页标题 | `KVideo - 视频聚合平台` |
-| `NEXT_PUBLIC_SITE_DESCRIPTION` | 站点描述 | `Multi-source video aggregation platform with beautiful Liquid Glass UI` |
-| `NEXT_PUBLIC_SITE_NAME` | 站点头部名称 | `KVideo` |
+| `NEXT_PUBLIC_SITE_TITLE` | 浏览器标签页标题 | `视频聚合平台 - KVideo` |
+| `NEXT_PUBLIC_SITE_DESCRIPTION` | 站点描述 | `专属视频聚合播放平台,具备美观的 Liquid Glass UI` |
+| `NEXT_PUBLIC_SITE_NAME` | 站点头部名称 | `视频聚合平台` |
### 配置示例:
diff --git a/app/api/douban/tags/route.ts b/app/api/douban/tags/route.ts
new file mode 100644
index 0000000..bfd8baf
--- /dev/null
+++ b/app/api/douban/tags/route.ts
@@ -0,0 +1,33 @@
+import { NextResponse } from 'next/server';
+
+export const runtime = 'edge';
+
+export async function GET(request: Request) {
+ const { searchParams } = new URL(request.url);
+ const type = searchParams.get('type') || 'movie'; // movie or tv
+
+ try {
+ const url = `https://movie.douban.com/j/search_tags?type=${type}&source=index`;
+
+ const response = await fetch(url, {
+ headers: {
+ 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36',
+ 'Referer': 'https://movie.douban.com/',
+ },
+ next: { revalidate: 86400 }, // Cache tags for 24 hours
+ });
+
+ if (!response.ok) {
+ throw new Error(`Douban API returned ${response.status}`);
+ }
+
+ const data = await response.json();
+ return NextResponse.json(data);
+ } catch (error) {
+ console.error('Douban Tags API error:', error);
+ return NextResponse.json(
+ { tags: [], error: 'Failed to fetch tags' },
+ { status: 500 }
+ );
+ }
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index fa7b9df..73e9ca1 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -32,7 +32,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
-
+