Replace ytimg with local thumbnails

pull/186/head
Omar Roth 2018-09-20 10:35:49 -05:00
rodzic abb15b82e6
commit 95e2d8f1b7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -671,7 +671,7 @@ def generate_thumbnails(json, id)
VIDEO_THUMBNAILS.each do |thumbnail|
json.object do
json.field "quality", thumbnail[:name]
json.field "url", "https://i.ytimg.com/vi/#{id}/#{thumbnail["url"]}.jpg"
json.field "url", "/vi/#{id}/#{thumbnail["url"]}.jpg"
json.field "width", thumbnail[:width]
json.field "height", thumbnail[:height]
end