Fix thumbnail URL on recommended videos

This commit is contained in:
Omar Roth 2018-07-27 20:02:31 -05:00
parent b13b91e2bf
commit e767651836

View File

@ -850,7 +850,7 @@ get "/api/v1/videos/:id" do |env|
qualities.each do |quality| qualities.each do |quality|
json.field quality[:name] do json.field quality[:name] do
json.object do json.object do
json.field "url", "https://i.ytimg.com/vi/#{id}/#{quality["url"]}.jpg" json.field "url", "https://i.ytimg.com/vi/#{rv["id"]}/#{quality["url"]}.jpg"
json.field "width", quality[:width] json.field "width", quality[:width]
json.field "height", quality[:height] json.field "height", quality[:height]
end end