summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-28 18:50:24 -0500
committerOmar Roth <omarroth@hotmail.com>2018-03-28 18:50:24 -0500
commitc172dac81195fdef3fe7aa4e180eea916ff8571c (patch)
tree8fc77a7863f44709b5847ee7fca9a7d8b053ba9f /src
parent3a1a2403f572617408b6ce53f0bd78c90d0c1712 (diff)
downloadinvidious-c172dac81195fdef3fe7aa4e180eea916ff8571c.tar.gz
invidious-c172dac81195fdef3fe7aa4e180eea916ff8571c.tar.bz2
invidious-c172dac81195fdef3fe7aa4e180eea916ff8571c.zip
Use alternative url for homepage thumbnails
Diffstat (limited to 'src')
-rw-r--r--src/views/index.ecr3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/index.ecr b/src/views/index.ecr
index 0d841a3e..d7eaa4dd 100644
--- a/src/views/index.ecr
+++ b/src/views/index.ecr
@@ -5,11 +5,10 @@
<% top_videos.each_slice(4) do |slice| %>
<div class="pure-g">
<% slice.each do |video| %>
- <% player_response = JSON.parse(video.info["player_response"]) %>
<div class="pure-u-1 pure-u-md-1-4">
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
<a style="width:100%;" href="/watch?v=<%= video.id %>">
- <img style="width:100%;" src="<%= player_response["videoDetails"]["thumbnail"]["thumbnails"][0]["url"] %>"/>
+ <img style="width:100%;" src="https://i1.ytimg.com/vi/<%= video.id %>/mqdefault.jpg"/>
<p><%= video.title %></p>
</a>
<p>