Fix thumbnail URL on recommended videos

pull/46/head
Omar Roth 2018-07-27 20:02:31 -05:00
rodzic b13b91e2bf
commit e767651836
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -850,7 +850,7 @@ get "/api/v1/videos/:id" do |env|
qualities.each do |quality|
json.field quality[:name] 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 "height", quality[:height]
end