diff --git a/VERSION.txt b/VERSION.txt index f78d75c..bfe4f16 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -20250806191001 \ No newline at end of file +20250806193618 \ No newline at end of file diff --git a/src/app/douban/page.tsx b/src/app/douban/page.tsx index efd99ba..1d78b09 100644 --- a/src/app/douban/page.tsx +++ b/src/app/douban/page.tsx @@ -427,7 +427,7 @@ function DoubanPageClient() { from='douban' title={item.title} poster={item.poster} - douban_id={item.id} + douban_id={Number(item.id)} rate={item.rate} year={item.year} type={type === 'movie' ? 'movie' : ''} // 电影类型严格控制,tv 不控 diff --git a/src/app/page.tsx b/src/app/page.tsx index ebe21e4..fa8dcc5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -251,7 +251,7 @@ function HomeClient() { from='douban' title={movie.title} poster={movie.poster} - douban_id={movie.id} + douban_id={Number(movie.id)} rate={movie.rate} year={movie.year} type='movie' @@ -299,7 +299,7 @@ function HomeClient() { from='douban' title={show.title} poster={show.poster} - douban_id={show.id} + douban_id={Number(show.id)} rate={show.rate} year={show.year} /> @@ -346,7 +346,7 @@ function HomeClient() { from='douban' title={show.title} poster={show.poster} - douban_id={show.id} + douban_id={Number(show.id)} rate={show.rate} year={show.year} /> diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 790b4f3..9b2e9bb 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -92,6 +92,7 @@ function PlayPageClient() { const [videoTitle, setVideoTitle] = useState(searchParams.get('title') || ''); const [videoYear, setVideoYear] = useState(searchParams.get('year') || ''); const [videoCover, setVideoCover] = useState(''); + const [videoDoubanId, setVideoDoubanId] = useState(0); // 当前源和ID const [currentSource, setCurrentSource] = useState( searchParams.get('source') || '' @@ -715,6 +716,7 @@ function PlayPageClient() { setVideoYear(detailData.year); setVideoTitle(detailData.title || videoTitleRef.current); setVideoCover(detailData.poster); + setVideoDoubanId(detailData.douban_id || 0); setDetail(detailData); if (currentEpisodeIndex >= detailData.episodes.length) { setCurrentEpisodeIndex(0); @@ -868,6 +870,7 @@ function PlayPageClient() { setVideoTitle(newDetail.title || newTitle); setVideoYear(newDetail.year); setVideoCover(newDetail.poster); + setVideoDoubanId(newDetail.douban_id || 0); setCurrentSource(newSource); setCurrentId(newId); setDetail(newDetail); @@ -1932,13 +1935,41 @@ function PlayPageClient() { {/* 封面展示 */}