Skip to content

Commit

Permalink
Replace ytimg with local thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Sep 20, 2018
1 parent abb15b8 commit 95e2d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invidious/videos.cr
Expand Up @@ -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
Expand Down

0 comments on commit 95e2d8f

Please sign in to comment.