diff --git a/src/app/(core)/v/[slug]/player.tsx b/src/app/(core)/v/[slug]/player.tsx index 23d13dc..c923077 100644 --- a/src/app/(core)/v/[slug]/player.tsx +++ b/src/app/(core)/v/[slug]/player.tsx @@ -59,7 +59,7 @@ function parseMetadataFromMarker(marker: string) { if (marker.toLowerCase().startsWith(tl.toLowerCase())) { return { type: "offset", - label: marker.slice(tl.length).trim(), + label: marker.slice(tl.length).trim().replaceAll("-", ":"), }; } } @@ -110,7 +110,9 @@ function parseMarkers(props: { vod: VOD; offset?: { totalSeconds: number } }) { }; }); - const filteredMarkers = taggedMarkers.filter((m) => m.type === "start"); + const filteredMarkers = taggedMarkers.filter( + (m) => m.type === "start" || m.type === "offset" + ); const ytChapters = filteredMarkers.reduce((acc, marker) => { const startTime = new Date(marker.startTime * 1000); @@ -296,25 +298,50 @@ export const VodPlayer = (props: { id: string; vod: VOD }) => {