add description check :p

This commit is contained in:
Ashley 2023-03-02 20:28:18 +00:00
parent bcbb72bc7e
commit 8674171c54

View file

@ -773,15 +773,30 @@ display: block; !important;" autoplay controls
<% if (String(video.Description) != "[object Object]") { %> <% if (String(video.Description) != "[object Object]") { %>
<% if (String(inv_vid.descriptionHtml) != "undefined") { %> <% if (String(inv_vid.descriptionHtml) != "undefined") { %>
<% if (String(inv_vid.descriptionHtml) != " ") { %> <% if (String(inv_vid.descriptionHtml) != " ") { %>
<% if (String(inv_vid.descriptionHtml) != "<p></p>") { %>
<div style="margin-top:1em;"> <div style="margin-top:1em;">
<%-String(inv_vid.descriptionHtml).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %> <%-String(inv_vid.descriptionHtml).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %>
</div> </div>
<% } %> <% } %> <% } %> <% } %> <% } %>
<% } %> <% } %>
<% if (String(video.Description) != "[object Object]") { %>
<% if (String(inv_vid.descriptionHtml) != "undefined") { %>
<% if (String(inv_vid.descriptionHtml) != " ") { %>
<% if (String(inv_vid.descriptionHtml) == "<p></p>") { %>
<div style="margin-top:1em;">
<%-String(inv_vid.description).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %>
</div>
<% } %> <% } %> <% } %>
<% } %>
<% if (String(video.Description) == "[object Object]") { %> <% if (String(video.Description) == "[object Object]") { %>
<% if (String(inv_vid.descriptionHtml) == " ") { %> <% if (String(inv_vid.descriptionHtml) == " ") { %>