fix this looped thing

This commit is contained in:
vapormusic 2022-01-26 22:22:10 +07:00
parent 5e87c858ba
commit 8dfec5ff49
2 changed files with 2 additions and 1 deletions

View file

@ -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());
}
});