mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix insert for empty descriptions
This commit is contained in:
parent
108648b427
commit
84b2583973
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue