mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Fixed placeholder
This commit is contained in:
@@ -348,7 +348,7 @@ async function UpdatePlayerState(data) {
|
|||||||
const timelineProps = targetSession.timeline_properties;
|
const timelineProps = targetSession.timeline_properties;
|
||||||
|
|
||||||
// Calcualte an accent color
|
// Calcualte an accent color
|
||||||
const accentColorPalette = await GetAccentPalette(mediaProps.Thumbnail);
|
const accentColorPalette = await GetAccentPalette(mediaProps.Thumbnail ?? './images/placeholder.png');
|
||||||
|
|
||||||
// 1. Check if playback status has changed and update visibility accordingly
|
// 1. Check if playback status has changed and update visibility accordingly
|
||||||
if (playbackInfo.PlaybackStatus !== CurrentPlaybackStatus) {
|
if (playbackInfo.PlaybackStatus !== CurrentPlaybackStatus) {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ async function ChangeTrack(mediaProps, accentColorPalette) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract the image source string (use fallback if Windows has no art)
|
// Extract the image source string (use fallback if Windows has no art)
|
||||||
const newArtUrl = mediaProps.Thumbnail;
|
const newArtUrl = mediaProps.Thumbnail ?? './images/placeholder.png';
|
||||||
|
|
||||||
// Set the image
|
// Set the image
|
||||||
switch (themeVariant) {
|
switch (themeVariant) {
|
||||||
|
|||||||
Reference in New Issue
Block a user