From 66b259a105d9fc7400e42a3e22d2a3a5777db86e Mon Sep 17 00:00:00 2001 From: Korbs Date: Sat, 30 Nov 2024 15:56:08 -0500 Subject: [PATCH] Set thumbnail for YouTube option --- src/Player.astro | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Player.astro b/src/Player.astro index dd7b41f..dd4ac1f 100644 --- a/src/Player.astro +++ b/src/Player.astro @@ -12,6 +12,7 @@ const { AudioAttributes, ShowBackAndForward, + BigPlayButton = false, YouTube = false, YouTubeQuality = '137', @@ -43,6 +44,7 @@ if (YouTube === true) { // 1080p = 137 // 720p = 302 // Dash Audio = 251 + var YTThumbnail = 'https://i.ytimg.com/vi/' + WatchId +'/maxresdefault.jpg' var YTVideo = 'https://' + Invidious +'/latest_version?id=' + WatchId + '&itag=' + YouTubeQuality var YTAudio = 'https://' + Invidious +'/latest_version?id=' + WatchId + '&itag=251' } else if (YouTube === false) { @@ -55,7 +57,7 @@ import './Styles/Iconoir.css' ---
- + {Audio ? : null } {Audio ? : null } {Milieu ? @@ -69,6 +71,11 @@ import './Styles/Iconoir.css' : null } + {BigPlayButton ? + + : + null + } {SettingsMenu ? @@ -81,7 +88,7 @@ import './Styles/Iconoir.css' : } - +