Invidious is an alternative front-end to YouTube
Add fix for empty descriptions
Omar Roth1eae76fc157b
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.crindex 2af65e74..fccffd18 100644--- a/src/invidious/helpers/helpers.cr+++ b/src/invidious/helpers/helpers.cr@@ -184,7 +184,12 @@ def html_to_content(description_html)description_html = description_html.to_sdescription = description_html.gsub("<br>", "\n")description = description.gsub("<br/>", "\n")- description = XML.parse_html(description).content.strip("\n ")++ if description.empty?+ description = ""+ else+ description = XML.parse_html(description).content.strip("\n ")+ endendreturn description_html, description