fixed81: 豆瓣详情补充地区/语言/片长/剧情简介
Docker Build & Test / build (push) Canceled after 0s
Docker Build & Test / test (push) Canceled after 0s
Build & Push Docker image / build-and-push (linux/amd64) (push) Canceled after 0s
Build & Push Docker image / build-and-push (linux/arm/v7) (push) Canceled after 0s
Build & Push Docker image / build-and-push (linux/arm64) (push) Canceled after 0s
Build & Push Docker image / merge-images (push) Canceled after 0s

This commit is contained in:
3970260761 committed 2026-11-08 15:35:49 +08:00
1 parent 7a99890425
commit eb93b3f062
2 files changed
+18 -4

No files matched your search

+3
View File
@@ -36,6 +36,9 @@ export async function GET(req: NextRequest) {
directors,
area: Array.isArray(d.regions) ? d.regions.join(' / ') : d.regions || '',
year: d.year || '',
duration: Array.isArray(d.durations) ? d.durations.join(' / ') : d.durations || '',
languages: Array.isArray(d.languages) ? d.languages.join(' / ') : d.languages || '',
intro: d.intro || '',
});
} catch {
continue;
+15 -4
View File
@@ -84,20 +84,24 @@ export default function VideoMetaExtra({
const showScore = scoreNum1 > 0 ? scoreNum1.toFixed(1) : dbNum > 0 ? dbNum.toFixed(1) : '';
const showDirector = director || (dbDetail?.directors || []).join('、');
if (!actors.length && !showDirector && !showScore && !area && !loading && !comments.length) return null;
const showArea = area || dbDetail?.area || '';
const showLang = lang || dbDetail?.languages || '';
const showDuration = dbDetail?.duration || '';
if (!actors.length && !showDirector && !showScore && !showArea && !loading && !comments.length) return null;
return (
<div className='mt-4 space-y-4'>
{/* 导演 / 地区 / 语言 */}
{(showDirector || area || lang) && (
{(showDirector || showArea || showLang || showDuration) && (
<div className='text-sm opacity-80 space-x-4'>
{showDirector && (
<span>
导演:<span className='font-medium'>{showDirector}</span>
</span>
)}
{area && <span>地区:{area}</span>}
{lang && <span>语言:{lang}</span>}
{showArea && <span>地区:{showArea}</span>}
{showLang && <span>语言:{showLang}</span>}
{showDuration && <span>片长:{showDuration}</span>}
</div>
)}
@@ -127,6 +131,13 @@ export default function VideoMetaExtra({
</div>
)}
{dbDetail?.intro && (
<div className='text-sm leading-relaxed opacity-90 whitespace-pre-line'>
<span className='font-semibold'>剧情简介:</span>
{dbDetail.intro}
</div>
)}
{/* 演员列表 */}
{actors.length > 0 && (
<div>