From 1703788f4b8cc7a044d1d9859671ed1e35d465d4 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 20 Sep 2018 11:05:25 -0500 Subject: [PATCH] Revert "Replace ytimg with local thumbnails" This reverts commit 95e2d8f1b7f46e239db4dd15e2a07b3121d07677. --- 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 1c17a959..c90f3582 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", "/vi/#{id}/#{thumbnail["url"]}.jpg" + json.field "url", "https://i.ytimg.com/vi/#{id}/#{thumbnail["url"]}.jpg" json.field "width", thumbnail[:width] json.field "height", thumbnail[:height] end