From b4124450f4e0f3993fda377afb83cb0e0edaa243 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 2 Feb 2024 10:07:41 +0000 Subject: [PATCH] add content n stuff --- html/poketube.ejs | 62 ++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 38 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index d733fc16..2136cf9c 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1579,7 +1579,7 @@ display: block; !important;" autoplay controls> - <% if (inv_vid.recommendedVideos.length > 1) { %> + <% if (!f) { %>
@@ -1587,15 +1587,30 @@ display: block; !important;" autoplay controls> Recommended Videos
- - Visit <%=k.Video.Channel.Name%>'s channel + + Uploaded by <%=k.Video.Channel.Name%> - - <% } %> + <% } %> + <% if (f) { %> +
+ + +Recommended Videos + + +
+ Uploaded by <%=k.Video.Channel.Name%> +
+ + +
+ <% } %> + + <% if (!r) { %> @@ -1644,7 +1659,9 @@ Recommended Videos <% } %> <% } %> - <% if (inv_vid.recommendedVideos.length < 1) { %> + + + <% if (f) { %> <% channel_uploads.latestVideos.forEach(x => { %>
<% if (!optout) { %><%- turntomins(x.lengthSeconds) || "LIVE"%><% } %><% if (optout) { %><%- x.duration || "LIVE"%><% } %> @@ -1671,38 +1688,7 @@ Recommended Videos
- <% }) %> - <% } %> - - <% if (f) { %> - - <% tj.forEach(x => { %> -
- <% if (!optout) { %> - - <%=x.duration %> - <% } %> - <% if (optout) { %> - - <%=x.duration %> - <% } %> - -
- <% if (!optout) { %> - <%= x.Title %> - <% } %> - <% if (optout) { %> - <%= x.Title %> - <% } %> -
- <%= video?.Channel?.Name || k.Video.Channel.Name %> -
<%= x.uploadedAt %> • <%= convert(x.views) %> views
- -
-
-
- - <% }) %> + <% }) %> <% } %> <% } %>