Merge pull request #502 from inalone/develop
last.fm: fix call to nowPlayingItemDidChangeLastFM
This commit is contained in:
commit
3c5ac8446c
2 changed files with 1 additions and 10 deletions
|
@ -74,7 +74,7 @@ ipcMain.on('nowPlayingItemDidChange', (_event, attributes) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('nowPlayingItemDidChangeLastFM', (_event, attributes) => {
|
ipcMain.on('nowPlayingItemDidChangeLastFM', (_event, attributes) => {
|
||||||
CiderPlug.callPlugin('lastfm', 'nowPlayingItemDidChangeLastFM', attributes);
|
CiderPlug.callPlugin('lastfm.js', 'nowPlayingItemDidChangeLastFM', attributes);
|
||||||
})
|
})
|
||||||
|
|
||||||
app.on('before-quit', () => {
|
app.on('before-quit', () => {
|
||||||
|
|
|
@ -253,15 +253,6 @@ export default class LastFMPlugin {
|
||||||
console.log('Example plugin stopped');
|
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
|
* Runs on song change
|
||||||
* @param attributes Music Attributes
|
* @param attributes Music Attributes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue