no more mk lookup :)
This commit is contained in:
parent
c8c437449e
commit
d4c8d9001a
8 changed files with 250 additions and 182 deletions
|
@ -164,11 +164,8 @@ export class AppEvents {
|
|||
if (arg.includes('auth')) {
|
||||
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', 'authenticateUser', authURI.split('lastfm?token=')[1]);
|
||||
console.log('token: ', authURI.split('lastfm?token=')[1])
|
||||
utils.getWindow().webContents.executeJavaScript(`ipcRenderer.send('lastfm:auth', "${authURI.split('lastfm?token=')[1]}")`).catch(console.error)
|
||||
}
|
||||
}
|
||||
// Play
|
||||
|
|
|
@ -107,7 +107,8 @@ export class Plugins {
|
|||
try{
|
||||
this.pluginsList[plugin][event](...args);
|
||||
}catch(e) {
|
||||
console.log(`[${plugin}] Plugin error: ${e}`);
|
||||
console.error(`[${plugin}] An error was encountered: ${e}`);
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -222,12 +222,10 @@ export class Store {
|
|||
"lastfm": {
|
||||
"enabled": false,
|
||||
"scrobble_after": 30,
|
||||
"enabledRemoveFeaturingArtists": true,
|
||||
"filterLoop": true,
|
||||
"NowPlaying": "true",
|
||||
"secrets": {
|
||||
"auth_token": "",
|
||||
"session": {},
|
||||
"username": "",
|
||||
"key": "",
|
||||
"token": ""
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue