Skip to content

Commit b68cf2a

Browse files
authored
Merge pull request #44 from PolarManne/yt-duration-fix
Round duration of YouTube videos
2 parents d11bc5b + db63f55 commit b68cf2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/youtube_meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
const metadata = {
9090
title: videoData.title,
9191
isLive: videoData.isLive,
92-
duration: player.getDuration(),
92+
duration: Math.round(player.getDuration()),
9393
};
9494

9595
console.log("METADATA:" + JSON.stringify(metadata));

0 commit comments

Comments
 (0)