mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Proxy thumbnails in cloudtube
This commit is contained in:
parent
ca8d26c722
commit
b0b00014d5
2 changed files with 19 additions and 2 deletions
|
|
@ -1,8 +1,7 @@
|
|||
mixin video_list_item(video, instanceOrigin)
|
||||
- if (!instanceOrigin) instanceOrigin = "https://i.ytimg.com"
|
||||
- let link = `/watch?v=${video.videoId}`
|
||||
a(href=link tabindex="-1").thumbnail
|
||||
img(src=`${instanceOrigin}/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
img(src=`/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
if video.second__lengthText != undefined
|
||||
span.duration= video.second__lengthText
|
||||
.info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue