From 84b2583973ad615b729faae01d934b82a1ad00d6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 2 Jun 2019 15:45:29 -0500 Subject: [PATCH] Fix insert for empty descriptions --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 8c059504..6d87d8e5 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1159,7 +1159,7 @@ def fetch_video(id, proxies, region) info["avg_rating"] = "#{avg_rating}" description = html.xpath_node(%q(//p[@id="eow-description"])) - description = description ? description.to_xml(options: XML::SaveOptions::NO_DECL) : "" + description = description ? description.to_xml(options: XML::SaveOptions::NO_DECL) : %q(

) wilson_score = ci_lower_bound(likes, likes + dislikes)