fix: try to fix year

This commit is contained in:
shinya
2025-07-11 02:42:05 +08:00
parent 367ad8aa48
commit 8c5521713b
3 changed files with 7 additions and 4 deletions

View File

@@ -96,8 +96,9 @@ export default function VideoCard({
aggregateData?.mostFrequentDoubanId ?? douban_id
);
const actualEpisodes = aggregateData?.mostFrequentEpisodes ?? episodes;
const actualYear =
(isAggregate ? aggregateData?.first.year : year) || 'unknown';
const actualYear = isAggregate
? aggregateData?.first.year || 'unknown'
: year;
const actualQuery = query || '';
const actualSearchType = isAggregate
? aggregateData?.first.episodes.length === 1