Fix insert for empty descriptions

pull/577/head
Omar Roth 5 years ago
parent 108648b427
commit 84b2583973
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

@ -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…
Cancel
Save