From 95e2d8f1b7f46e239db4dd15e2a07b3121d07677 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 20 Sep 2018 10:35:49 -0500 Subject: [PATCH] Replace ytimg with local thumbnails --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index c90f3582..1c17a959 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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