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', () => { 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