changed logs

This commit is contained in:
Core 2022-06-26 15:58:04 +01:00
parent 7874340caa
commit 3b43947ddc
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -37,20 +37,20 @@ export default class lastfm {
onReady(_win: Electron.BrowserWindow): void { onReady(_win: Electron.BrowserWindow): void {
// Register the ipcMain handlers // Register the ipcMain handlers
this._utils.getIPCMain().handle('lastfm:url', (_event: any) => { this._utils.getIPCMain().handle('lastfm:url', (event: any) => {
// console.debug('lastfm:url', event) console.debug('lastfm:url', event)
return this._lfm.getAuthenticationUrl({"cb": "cider://auth/lastfm"}) return this._lfm.getAuthenticationUrl({"cb": "cider://auth/lastfm"})
}) })
this._utils.getIPCMain().on('lastfm:auth', (event: any, token: string) => { this._utils.getIPCMain().on('lastfm:auth', (event: any, token: string) => {
// console.debug('lastfm:auth', event, token) console.debug('lastfm:auth', event, token)
this.authenticateLastFM(token) this.authenticateLastFM(token)
}) })
this._utils.getIPCMain().on('lastfm:disconnect', (_event: any) => { this._utils.getIPCMain().on('lastfm:disconnect', (_event: any) => {
this._lfm.setSessionCredentials(null, null); this._lfm.setSessionCredentials(null, null);
this._authenticated = false; this._authenticated = false;
console.debug('[lastfm] [disconnect] Disconnected') console.debug('lastfm:disconnect')
}) })
this._utils.getIPCMain().on('lastfm:nowPlayingChange', (event: any, attributes: any) => { this._utils.getIPCMain().on('lastfm:nowPlayingChange', (event: any, attributes: any) => {