mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 09:20:52 +01:00
Use generic url for thumbnails
This commit is contained in:
parent
841308929d
commit
69dd52bac3
@ -312,7 +312,7 @@ get "/watch" do |env|
|
|||||||
video.description = fill_links(video.description, "https", "www.youtube.com")
|
video.description = fill_links(video.description, "https", "www.youtube.com")
|
||||||
video.description = add_alt_links(video.description)
|
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"
|
templated "watch"
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="pure-u-1 pure-u-md-1-4">
|
<div class="pure-u-1 pure-u-md-1-4">
|
||||||
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
|
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
|
||||||
<a style="width:100%;" href="/watch?v=<%= video.id %>">
|
<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>
|
<p><%= video.title %></p>
|
||||||
</a>
|
</a>
|
||||||
<p>
|
<p>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="pure-u-1 pure-u-md-1-4">
|
<div class="pure-u-1 pure-u-md-1-4">
|
||||||
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
|
<div style="overflow-wrap:break-word; word-wrap:break-word;" class="h-box">
|
||||||
<a style="width:100%;" href="/watch?v=<%= video["id"] %>">
|
<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>
|
<p><%= video["title"] %></p>
|
||||||
</a>
|
</a>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user