Skip to content

Invidious is an alternative front-end to YouTube

Use maxresdefault for thumbnail

Omar Roth272e798f5cdf
diff --git a/src/invidious.cr b/src/invidious.cr
index 2114180c..d357ad5e 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -439,7 +439,7 @@ get "/watch" do |env|
host_params = env.request.query_params
host_params.delete_all("v")
- thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg"
+ thumbnail = "https://i.ytimg.com/vi/#{id}/maxresdefault.jpg"
templated "watch"
end
@@ -1525,7 +1525,7 @@ get "/embed/:id" do |env|
host_params = env.request.query_params
host_params.delete_all("v")
- thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg"
+ thumbnail = "https://i.ytimg.com/vi/#{id}/maxresdefault.jpg"
rendered "embed"
end