From 8674171c54072fee23faabb1c42020e7afbf0974 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 2 Mar 2023 20:28:18 +0000 Subject: [PATCH] add description check :p --- html/poketube.ejs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index a8fd7a6c..4818154a 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -773,14 +773,29 @@ display: block; !important;" autoplay controls <% if (String(video.Description) != "[object Object]") { %> <% if (String(inv_vid.descriptionHtml) != "undefined") { %> <% if (String(inv_vid.descriptionHtml) != " ") { %> + <% if (String(inv_vid.descriptionHtml) != "

") { %>
<%-String(inv_vid.descriptionHtml).replace(/\n/g, "
").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %>
- <% } %> <% } %> + <% } %> <% } %> <% } %> <% } %> + + <% if (String(video.Description) != "[object Object]") { %> + <% if (String(inv_vid.descriptionHtml) != "undefined") { %> + <% if (String(inv_vid.descriptionHtml) != " ") { %> + <% if (String(inv_vid.descriptionHtml) == "

") { %> + +
+ + + <%-String(inv_vid.description).replace(/\n/g, "
").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %> +
+ <% } %> <% } %> <% } %> + <% } %> + <% if (String(video.Description) == "[object Object]") { %> <% if (String(inv_vid.descriptionHtml) == " ") { %>