新增源站寻片

This commit is contained in:
mtvpls
2025-12-31 17:38:06 +08:00
parent caf8f28df3
commit 8e9eb76d58
9 changed files with 984 additions and 54 deletions
+11 -1
View File
@@ -40,7 +40,7 @@ export interface VideoCardProps {
source_names?: string[];
progress?: number;
year?: string;
from: 'playrecord' | 'favorite' | 'search' | 'douban' | 'tmdb';
from: 'playrecord' | 'favorite' | 'search' | 'douban' | 'tmdb' | 'source-search';
currentEpisode?: number;
douban_id?: number;
tmdb_id?: number;
@@ -441,6 +441,16 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
showRating: !!rate,
showYear: false,
},
'source-search': {
showSourceName: false,
showProgress: false,
showPlayButton: true,
showHeart: true,
showCheckCircle: false,
showDoubanLink: true,
showRating: !!rate,
showYear: true,
},
};
return configs[from] || configs.search;
}, [from, isAggregate, douban_id, rate, isUpcoming]);