Skip to content

Commit

Permalink
Update src/app/(core)/v/[slug]/player.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
t3dotgg and coderabbitai[bot] authored Oct 17, 2024
1 parent 63b7874 commit 1e76d78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/(core)/v/[slug]/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ function parseMarkers(props: { vod: VOD; offset?: { totalSeconds: number } }) {
);

const ytChapters = filteredMarkers.reduce((acc, marker) => {
const startTime = new Date(marker.startTime * 1000);
const timeStr = startTime.toISOString().substr(11, 8);
const timeStr = dayjs
.duration(marker.startTime * 1000)
.format("HH:mm:ss");
return `${acc}${marker.label} - ${timeStr}\n`;
}, "");

Expand Down

0 comments on commit 1e76d78

Please sign in to comment.