From 5c955820dd007b74d04c831b33169241e50c4190 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:28:18 +0100 Subject: [PATCH] also no more session.json --- src/main/plugins/lastfm.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/plugins/lastfm.ts b/src/main/plugins/lastfm.ts index 5c3c9767..902671e7 100644 --- a/src/main/plugins/lastfm.ts +++ b/src/main/plugins/lastfm.ts @@ -93,7 +93,7 @@ export default class lastfm { }); if (this._utils.getStoreValue("lastfm.secrets.username") && this._utils.getStoreValue("lastfm.secrets.key")) { - this._lfm.setSessionCredentials(this._utils.getStoreValue("lastfm.secrets.session.username"), this._utils.getStoreValue("lastfm.secrets.session.key")); + this._lfm.setSessionCredentials(this._utils.getStoreValue("lastfm.secrets.username"), this._utils.getStoreValue("lastfm.secrets.key")); this._authenticated = true; } else { this.authenticateLastFM(token) @@ -112,7 +112,6 @@ export default class lastfm { console.error(err); return; } - console.log(session); // {"name": "LASTFM_USERNAME", "key": "THE_USER_SESSION_KEY"} this._utils.setStoreValue("lastfm.secrets.token", token) this._utils.setStoreValue('lastfm.secrets.username', session.username); this._utils.setStoreValue('lastfm.secrets.key', session.key);