diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-05 20:54:56 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-05 20:54:56 -0500 |
| commit | 69dd52bac3b480ae932452c2bea6bab3de1d9892 (patch) | |
| tree | f5aedab288b263994d1db3c650c3f704af9e0678 /src | |
| parent | 841308929dabc773103c7c7479024be544a8a946 (diff) | |
| download | invidious-69dd52bac3b480ae932452c2bea6bab3de1d9892.tar.gz invidious-69dd52bac3b480ae932452c2bea6bab3de1d9892.tar.bz2 invidious-69dd52bac3b480ae932452c2bea6bab3de1d9892.zip | |
Use generic url for thumbnails
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 | ||||
| -rw-r--r-- | src/views/index.ecr | 2 | ||||
| -rw-r--r-- | src/views/search.ecr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 182f6610..c0b22d69 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -312,7 +312,7 @@ get "/watch" do |env| video.description = fill_links(video.description, "https", "www.youtube.com") video.description = add_alt_links(video.description) - thumbnail = "https://i1.ytimg.com/vi/#{id}/mqdefault.jpg" + thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg" templated "watch" end diff --git a/src/views/index.ecr b/src/views/index.ecr index d7eaa4dd..9d841a20 100644 --- a/src/views/index.ecr +++ b/src/views/index.ecr @@ -8,7 +8,7 @@ <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="https://i1.ytimg.com/vi/<%= video.id %>/mqdefault.jpg"/> + <img style="width:100%;" src="https://i.ytimg.com/vi/<%= video.id %>/mqdefault.jpg"/> <p><%= video.title %></p> </a> <p> diff --git a/src/views/search.ecr b/src/views/search.ecr index 3da7f42f..df44c253 100644 --- a/src/views/search.ecr +++ b/src/views/search.ecr @@ -8,7 +8,7 @@ <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="https://i1.ytimg.com/vi/<%= video["id"] %>/mqdefault.jpg"/> + <img style="width:100%;" src="https://i.ytimg.com/vi/<%= video["id"] %>/mqdefault.jpg"/> <p><%= video["title"] %></p> </a> <p> |
