mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-05 00:19:59 +00:00
feat: use YT thumbnail for trailer thumbnail #428
This commit is contained in:
parent
4ea889951b
commit
01e3bb7810
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<div class='position-absolute w-350 h-400 absolute-container top-0 bottom-0 m-auto bg-dark-light z-30 rounded overflow-hidden pointer'>
|
||||
<div class='banner position-relative bg-black'>
|
||||
<img src={media.bannerImage || ' '} alt='banner' class='img-cover w-full h-full' />
|
||||
<img src={media.bannerImage || `https://i.ytimg.com/vi/${media.trailer?.id}/hqdefault.jpg` || ' '} alt='banner' class='img-cover w-full h-full' />
|
||||
{#if media.trailer?.id}
|
||||
<div class='material-symbols-outlined filled position-absolute z-10 top-0 right-0 p-15 font-size-22' class:d-none={hide} use:click={toggleMute}>{muted ? 'volume_off' : 'volume_up'}</div>
|
||||
<!-- for now we use some invidious instance, would be nice to somehow get these links outselves, this redirects straight to some google endpoint -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue