diff --git a/index.js b/index.js index d09d122..390a466 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,7 @@ app.get("/search", async (req, res) => {
+

${result.durationString}

@@ -67,7 +68,8 @@ app.get("/search", async (req, res) => {

${result.description.substring(0, 75) + "..." || "No Description"}

-
+ +
${result.channel.name} @@ -142,7 +144,7 @@ app.get("/video", async (req, res) => { var dp = 0 ytdl(id, { filter: 'videoandaudio', quality: "highest", format: 'mp4' }) .on("progress", (chunk, ct, et) => { - if (debounce && ct > Math.min(et, 5000000)) { + if (debounce && (ct / et) > 0.05) { debounce = false videoCache[id] = { "path": vidpath, diff --git a/resources/player.html b/resources/player.html index 1a1153b..76e00d3 100644 --- a/resources/player.html +++ b/resources/player.html @@ -15,10 +15,10 @@
-
+ -
+
diff --git a/resources/searchPage.html b/resources/searchPage.html index ddff999..31f6f66 100644 --- a/resources/searchPage.html +++ b/resources/searchPage.html @@ -14,10 +14,10 @@
-
+ -
+
diff --git a/static/index.html b/static/index.html index 67f7a20..af1c07c 100644 --- a/static/index.html +++ b/static/index.html @@ -14,10 +14,10 @@
-
+ -
+
@@ -33,7 +33,7 @@

More about the project:

Github - The developer + The developer

diff --git a/static/mainStyle.css b/static/mainStyle.css index 9d8e834..13e838e 100644 --- a/static/mainStyle.css +++ b/static/mainStyle.css @@ -121,7 +121,7 @@ p { margin: auto; text-align: left; height: 100%; - + overflow: hidden; } @media (max-width: 768px) {