• Renamed "Base64Image" to "Thumbnail:

• Minor CSS bug fixes
• Fully documented python script
This commit is contained in:
nutty
2026-06-29 00:56:23 +10:00
parent 79edc15f0b
commit 4575b0d2c6
9 changed files with 119 additions and 23 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ async function UpdatePlayerState(data) {
const timelineProps = targetSession.timeline_properties;
// Calcualte an accent color
const accentColorPalette = await GetAccentPalette(mediaProps.Base64Image);
const accentColorPalette = await GetAccentPalette(mediaProps.Thumbnail);
// 1. Check if playback status has changed and update visibility accordingly
if (playbackInfo.PlaybackStatus !== CurrentPlaybackStatus) {
@@ -168,7 +168,7 @@ async function ChangeTrack(mediaProps, tintColor) {
artistLabel.innerText = swapArtistTrack ? mediaProps.Title : mediaProps.Artist;
// Extract the image source string (use fallback if Windows has no art)
const newArtUrl = mediaProps.Base64Image;
const newArtUrl = mediaProps.Thumbnail;
// Set the image
backgroundLayer.style.backgroundImage = `url('${newArtUrl}')`;
+2 -2
View File
@@ -31,12 +31,12 @@
transition: opacity 0.5s ease;
}
#art-layer {
#album-art-layer {
z-index: 1;
transition: all 0.5s ease;
}
#art-transition-layer {
#album-art-transition-layer {
z-index: 0;
}