Add metadata fix for videos with empty description

このコミットが含まれているのは:
Omar Roth 2018-07-23 09:03:37 -05:00
コミット bb20ec110e
1個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -402,6 +402,9 @@ get "/watch" do |env|
description = video.description.gsub("<br>", " ")
description = description.gsub("<br/>", " ")
description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ")
if description.empty?
description = " "
end
thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg"