Revert "LastFM can be unique and have its own call"
This reverts commit d36e1b19f6
.
This commit is contained in:
parent
51393397e5
commit
f156083d48
3 changed files with 2 additions and 8 deletions
|
@ -69,10 +69,6 @@ ipcMain.on('nowPlayingItemDidChange', (_event, attributes) => {
|
|||
CiderPlug.callPlugins('onNowPlayingItemDidChange', attributes);
|
||||
});
|
||||
|
||||
ipcMain.on('lfmItemChange', (_event, attributes) => {
|
||||
CiderPlug.callPlugins('lfmItemChange', attributes);
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
CiderPlug.callPlugins('onBeforeQuit');
|
||||
console.warn(`${app.getName()} exited.`);
|
||||
|
|
|
@ -265,7 +265,7 @@ export default class LastFMPlugin {
|
|||
* Runs on song change
|
||||
* @param attributes Music Attributes
|
||||
*/
|
||||
lfmItemChange(attributes: object): void {
|
||||
onNowPlayingItemDidChange(attributes: object): void {
|
||||
if (!this._store.lastfm.filterLoop){
|
||||
this._lastfm.cachedNowPlayingAttributes = false;
|
||||
this._lastfm.cachedAttributes = false}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
});
|
||||
|
||||
MusicKit.getInstance().addEventListener(MusicKit.Events.authorizationStatusDidChange, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue