From bcd634e683c8aaa464a00ab05c4c5026ce8a5659 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 23 Oct 2024 15:02:39 +0000 Subject: [PATCH] add license --- html/poketube.ejs | 62 ++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index d07505bc..dbc660bd 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -41,7 +41,7 @@ <% if (!e) { %> - + @@ -1228,6 +1228,7 @@ Offical Discord Server! :3 title="Non-Translated title : <%=inv_vid.title%>" <% } %> > <%-k.Video.Title.replace(/\/channel\//g, "/channel?id=").replace(/https:\/\/youtube.com/g, ""); %> + @@ -1416,6 +1417,27 @@ WIP!
+ <% if (Array.isArray(inv_vid?.keywords)) { %> + +
Keywords
+
+ <% if (inv_vid?.keywords && inv_vid.keywords.length > 0) { %> + <% inv_vid?.keywords.forEach(x => { %> + + <% }) %> + + + <% } else { %> +

oh hey i think you lost your keywords look how to find one

+ <% } %> +
+ + + <% } %> <% if (inv_vid.descriptionHtml && inv_vid.descriptionHtml.trim() !== "" && inv_vid.descriptionHtml.trim() !== "

") { %>
@@ -1480,11 +1502,18 @@ WIP! Views : <%=engagement.viewCount.toLocaleString()%>
Genre: <%-inv_vid.genre %>
-<% if (date.includes("Premiered")) { %> - Premiered <%= date.replace("Premiered", "at") %> ^^
-<% } else { %> - Uploaded At <%= date %> ^^
-<% } %> + <% if (inv_vid?.license) { %> + License: <%-inv_vid?.license %> + <% } else { %> + License: Standard YouTube License + <% } %> + + <% if (date.includes("Premiered")) { %> + Premiered <%= date.replace("Premiered", "at") %> ^^
+ <% } else { %> + Uploaded At <%= date %> ^^
+ <% } %> +
warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
@@ -1560,27 +1589,6 @@ WIP! - <% if (Array.isArray(inv_vid?.keywords)) { %> - -
Tags
-
- <% if (inv_vid?.keywords && inv_vid.keywords.length > 0) { %> - <% inv_vid?.keywords.forEach(x => { %> - - <% }) %> - - - <% } else { %> -

oh hey i think you lost your tags look how to find one

- <% } %> -
- - - <% } %>