diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-02 15:45:29 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-02 15:47:45 -0500 |
| commit | 84b2583973ad615b729faae01d934b82a1ad00d6 (patch) | |
| tree | 907d47ca471fffdec7e6a59a06b0de822757b806 /src | |
| parent | 108648b427398aa6b9139603e034cff1807701c0 (diff) | |
| download | invidious-84b2583973ad615b729faae01d934b82a1ad00d6.tar.gz invidious-84b2583973ad615b729faae01d934b82a1ad00d6.tar.bz2 invidious-84b2583973ad615b729faae01d934b82a1ad00d6.zip | |
Fix insert for empty descriptions
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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(<p id="eow-description"></p>) wilson_score = ci_lower_bound(likes, likes + dislikes) |
