Revert "LastFM can be unique and have its own call"

This reverts commit d36e1b19f6.
This commit is contained in:
Core 2022-02-17 01:01:17 +00:00
parent 51393397e5
commit f156083d48
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
3 changed files with 2 additions and 8 deletions

View file

@ -25,10 +25,8 @@ const MusicKitInterop = {
MusicKit.getInstance().addEventListener(MusicKit.Events.nowPlayingItemDidChange, async () => {
// await MusicKitInterop.modifyNamesOnLocale();
if (MusicKitInterop.filterTrack(MusicKitInterop.getAttributes(), false, true) || !app.cfg.lastfm.filterLoop) {
global.ipcRenderer.send('lfmItemChange', MusicKitInterop.getAttributes());
global.ipcRenderer.send('nowPlayingItemDidChange', MusicKitInterop.getAttributes());
}
global.ipcRenderer.send('nowPlayingItemDidChange', MusicKitInterop.getAttributes());
});
MusicKit.getInstance().addEventListener(MusicKit.Events.authorizationStatusDidChange, () => {