Fix insert for empty descriptions

このコミットが含まれているのは:
Omar Roth 2019-06-02 15:45:29 -05:00
コミット 84b2583973
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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)