From 0fa176529289b9f753593e4b6cdb873799f054c1 Mon Sep 17 00:00:00 2001 From: inalone Date: Tue, 22 Feb 2022 00:40:22 +0000 Subject: [PATCH 1/2] last.fm: fix call to nowPlayingItemDidChangeLastFM --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index a046cd8a..34e4ab66 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -74,7 +74,7 @@ ipcMain.on('nowPlayingItemDidChange', (_event, attributes) => { }); ipcMain.on('nowPlayingItemDidChangeLastFM', (_event, attributes) => { - CiderPlug.callPlugin('lastfm', 'nowPlayingItemDidChangeLastFM', attributes); + CiderPlug.callPlugin('lastfm.js', 'nowPlayingItemDidChangeLastFM', attributes); }) app.on('before-quit', () => { From 0c7cba0443093fb107441eb36aa11e7891dfb304 Mon Sep 17 00:00:00 2001 From: inalone Date: Tue, 22 Feb 2022 01:08:19 +0000 Subject: [PATCH 2/2] last.fm: remove unnecessary onPlaybackStateDidChange function --- src/main/plugins/lastfm.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/plugins/lastfm.ts b/src/main/plugins/lastfm.ts index a7433b8b..b048b7cd 100644 --- a/src/main/plugins/lastfm.ts +++ b/src/main/plugins/lastfm.ts @@ -253,15 +253,6 @@ export default class LastFMPlugin { console.log('Example plugin stopped'); } - /** - * Runs on playback State Change - * @param attributes Music Attributes (attributes.status = current state) - */ - onPlaybackStateDidChange(attributes: object): void { - this.updateNowPlayingSong(attributes) - // this.scrobbleSong(attributes) - } - /** * Runs on song change * @param attributes Music Attributes