diff --git a/src/main/plugins/lastfm.ts b/src/main/plugins/lastfm.ts index 006256db..51ddcc34 100644 --- a/src/main/plugins/lastfm.ts +++ b/src/main/plugins/lastfm.ts @@ -244,6 +244,7 @@ export default class LastFMPlugin { */ onNowPlayingItemDidChange(attributes: object): void { if (!this._store.lastfm.filterLoop){ + this._lastfm.cachedNowPlayingAttributes = false; this._lastfm.cachedAttributes = false} this.scrobbleSong(attributes) this.updateNowPlayingSong(attributes) diff --git a/src/preload/cider-preload.js b/src/preload/cider-preload.js index c1eb6046..7d921eeb 100644 --- a/src/preload/cider-preload.js +++ b/src/preload/cider-preload.js @@ -24,7 +24,7 @@ const MusicKitInterop = { /** wsapi */ MusicKit.getInstance().addEventListener(MusicKit.Events.nowPlayingItemDidChange, () => { - if (MusicKitInterop.filterTrack(MusicKitInterop.getAttributes(), false, true)) { + if (MusicKitInterop.filterTrack(MusicKitInterop.getAttributes(), false, true) || !app.cfg.lastfm.filterLoop) { global.ipcRenderer.send('nowPlayingItemDidChange', MusicKitInterop.getAttributes()); } });