diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 88691a35..0879c25e 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -3953,7 +3953,7 @@ const app = new Vue({ this.currentArtUrl = this.mk.nowPlayingItem._assets[0].artworkURL } try { - document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); + // document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); } catch (e) { } } else { @@ -3967,14 +3967,14 @@ const app = new Vue({ } ipcRenderer.send('updateRPCImage', this.currentArtUrl ?? ''); try { - document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); + // document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); } catch (e) { } } else { this.currentArtUrlRaw = '' this.currentArtUrl = ''; try { - document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); + // document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`); } catch (e) { } } diff --git a/src/renderer/views/app/chrome-bottom.ejs b/src/renderer/views/app/chrome-bottom.ejs index ee044c82..c475119d 100644 --- a/src/renderer/views/app/chrome-bottom.ejs +++ b/src/renderer/views/app/chrome-bottom.ejs @@ -5,7 +5,7 @@
- +
diff --git a/src/renderer/views/components/mediaitem-artwork.ejs b/src/renderer/views/components/mediaitem-artwork.ejs index 81b51bf1..fbaf53be 100644 --- a/src/renderer/views/components/mediaitem-artwork.ejs +++ b/src/renderer/views/components/mediaitem-artwork.ejs @@ -80,6 +80,9 @@ watch: { windowRelativeScale: function (newValue, oldValue) { this.swapImage(newValue) + }, + url: function (newValue, oldValue) { + this.imgSrc = app.getMediaItemArtwork(this.url, this.size, this.width) } }, mounted() {