Skip to content

Commit 616fc85

Browse files
committed
Update youtube_meta.html
1 parent c99695b commit 616fc85

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

public/youtube_meta.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- 👋👋👋 Hello dear code reader, have fun understanding how YT works without ads. -->
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width,initial-scale=1" />
8-
<title>YT Minimal Player (Metadata)</title>
8+
<title>YT Minimal Player</title>
99

1010
<link rel="dns-prefetch" href="//www.youtube.com">
1111
<link rel="dns-prefetch" href="//www.youtube-nocookie.com">
@@ -19,7 +19,6 @@
1919
width: 25%;
2020
height: 25%;
2121
overflow: hidden;
22-
background: #000000;
2322
}
2423

2524
#player-container {
@@ -86,7 +85,7 @@
8685
const metadata = {
8786
title: videoData.title,
8887
isLive: videoData.isLive,
89-
duration: player.getCurrentTime(),
88+
duration: player.getDuration(),
9089
};
9190

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

0 commit comments

Comments
 (0)