私人影库扫描增加季度支持

This commit is contained in:
mtvpls
2025-12-25 23:34:54 +08:00
parent 636e6042c8
commit 76b3349aa2
11 changed files with 699 additions and 34 deletions
+23
View File
@@ -49,6 +49,8 @@ export interface VideoCardProps {
origin?: 'vod' | 'live';
releaseDate?: string; // 上映日期,格式:YYYY-MM-DD
isUpcoming?: boolean; // 是否为即将上映
seasonNumber?: number; // 季度编号
seasonName?: string; // 季度名称
}
export type VideoCardHandle = {
@@ -80,6 +82,8 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
origin = 'vod',
releaseDate,
isUpcoming = false,
seasonNumber,
seasonName,
}: VideoCardProps,
ref
) {
@@ -775,6 +779,25 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
</div>
)}
{/* 季度徽章 */}
{seasonNumber && (
<div
className="absolute top-2 left-2 bg-blue-500/80 text-white text-xs font-medium px-2 py-1 rounded backdrop-blur-sm shadow-sm transition-all duration-300 ease-out group-hover:opacity-90"
style={{
WebkitUserSelect: 'none',
userSelect: 'none',
WebkitTouchCallout: 'none',
} as React.CSSProperties}
onContextMenu={(e) => {
e.preventDefault();
return false;
}}
title={seasonName || `${seasonNumber}`}
>
S{seasonNumber}
</div>
)}
{/* 徽章 */}
{config.showRating && rate && (
<div