From e767651836acd92ceec61b11f3e9b2f22dcf97ab Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 27 Jul 2018 20:02:31 -0500 Subject: [PATCH] Fix thumbnail URL on recommended videos --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 2ae210a8..dd21108c 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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