UPDATE/REFACTOR: Change how VODs are accessed & loaded;

FIX: `isLive` -> `streamerIsLive`;
FIX: `Sidebar` profile pictures;
This commit is contained in:
Chris-1010
2025-03-06 22:44:08 +00:00
parent 9c44dfe598
commit b243191b2e
7 changed files with 28 additions and 59 deletions

View File

@@ -151,7 +151,7 @@ const VodListItem: React.FC<VodListItemProps> = ({
<div className="flex justify-evenly items-stretch rounded-b-lg">
<a
className="flex justify-around w-full h-full bg-black/50 hover:bg-black/80 p-2 mx-1 font-semibold rounded-full border border-transparent hover:border-white"
href={`/vods/${username}/${vod_id}.mp4`}
href={`/vod/${username}/${vod_id}.mp4`}
download={`${username}_vod_${vod_id}.mp4`}
>
<DownloadIcon />

View File

@@ -17,7 +17,7 @@ interface ListRowProps {
description?: string;
items: ItemType[];
wrap?: boolean;
onItemClick: (itemName: string) => void;
onItemClick: (itemName: string, username?: string) => void;
titleClickable?: boolean;
extraClasses?: string;
itemExtraClasses?: string;
@@ -185,8 +185,8 @@ const ListRow = forwardRef<ListRowRef, ListRowProps>((props, ref) => {
category_name={item.category_name}
length={item.length}
views={item.views}
thumbnail={item.thumbnail}
onItemClick={() => handleVodClick(item)}
thumbnail={`/vods/${item.username}/${item.vod_id}.png`}
onItemClick={() => onItemClick(item.username, item.vod_id.toString())}
extraClasses={itemExtraClasses}
variant={variant}
/>