From dee42a0ac737ef7b3c8d7e54ad7f9da49359c3fd Mon Sep 17 00:00:00 2001 From: vapormusic Date: Fri, 21 Jan 2022 11:56:15 +0700 Subject: [PATCH] change cider key --- src/main/plugins/lastfm.ts | 5 +++-- src/renderer/index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/plugins/lastfm.ts b/src/main/plugins/lastfm.ts index 921a3af7..1eccf2d6 100644 --- a/src/main/plugins/lastfm.ts +++ b/src/main/plugins/lastfm.ts @@ -7,8 +7,8 @@ import {resolve} from 'path'; export default class LastFMPlugin { private sessionPath = resolve(electron.app.getPath('userData'), 'session.json'); private apiCredentials = { - key: "174905d201451602407b428a86e8344d", - secret: "be61d4081f6adec150f0130939f854bb" + key: "f9986d12aab5a0fe66193c559435ede3", + secret: "acba3c29bd5973efa38cc2f0b63cc625" } /** * Private variables for interaction in plugins @@ -23,6 +23,7 @@ export default class LastFMPlugin { console.log("[LastFM][authenticateFromFile] Logged in.", sessionData.username, sessionData.key) } + private authenticate() { try{ if (this._win.store.store.lastfm.auth_token) { diff --git a/src/renderer/index.js b/src/renderer/index.js index de06407b..bc2db67f 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -3206,7 +3206,7 @@ const app = new Vue({ console.log("[LastFM] Received LastFM authentication callback") const element = document.getElementById('lfmConnect'); // new key : f9986d12aab5a0fe66193c559435ede3 - window.open('https://www.last.fm/api/auth?api_key=174905d201451602407b428a86e8344d&cb=cider://auth/lastfm'); + window.open('https://www.last.fm/api/auth?api_key=f9986d12aab5a0fe66193c559435ede3&cb=cider://auth/lastfm'); element.innerText = 'Connecting...'; /* Just a timeout for the button */