From f5d549a6175daa3b4d043c2d7b149800d0a28f68 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Tue, 17 Feb 2026 10:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dplay=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8douban?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/play/page.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 0c6b41a..5069245 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -8144,11 +8144,14 @@ function PlayPageClient() { poster={detail.poster} doubanId={ // 特殊源使用 tmdb,其他使用 cms(通过 doubanId) + // 如果有豆瓣ID且不为0,传入doubanId detail.source === 'openlist' || detail.source?.startsWith('emby') || detail.source === 'xiaoya' ? undefined - : detail.douban_id + : detail.douban_id && detail.douban_id !== 0 + ? detail.douban_id + : undefined } tmdbId={ // 特殊源使用 tmdb @@ -8161,9 +8164,11 @@ function PlayPageClient() { type={detail.type_name === '电影' ? 'movie' : 'tv'} cmsData={ // 非特殊源使用 cms 数据 + // 但如果有豆瓣ID且不为0,则不传入cmsData,优先使用豆瓣数据 detail.source !== 'openlist' && !detail.source?.startsWith('emby') && - detail.source !== 'xiaoya' + detail.source !== 'xiaoya' && + !(detail.douban_id && detail.douban_id !== 0) ? { desc: detail.desc, episodes: detail.episodes,