This commit is contained in:
Core 2022-06-14 12:40:49 +01:00
parent f9becc61ae
commit c8c437449e
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
5 changed files with 78 additions and 17 deletions

View file

@ -162,13 +162,13 @@ export class AppEvents {
// LastFM Auth URL
if (arg.includes('auth')) {
let authURI = arg.split('/auth/')[1]
const authURI = arg.split('/auth/')[1]
if (authURI.startsWith('lastfm')) { // If we wanted more auth options
const authKey = authURI.split('lastfm?token=')[1];
utils.setStoreValue('lastfm.enabled', true);
utils.setStoreValue('lastfm.auth_token', authKey);
utils.getWindow().webContents.send('LastfmAuthenticated', authKey);
this.plugin.callPlugin('lastfm', 'authenticate', authKey);
// const authKey = authURI.split('lastfm?token=')[1];
// utils.setStoreValue('lastfm.enabled', true);
// utils.setStoreValue('lastfm.auth_token', authKey);
// utils.getWindow().webContents.send('LastfmAuthenticated', authKey);
this.plugin.callPlugin('lastfm', 'authenticateUser', authURI.split('lastfm?token=')[1]);
}
}
// Play