Bug fixes, better lyrics, sorting

This commit is contained in:
exttex
2020-09-28 18:17:23 +02:00
parent 83860ff052
commit 80f6cbf870
14 changed files with 186 additions and 34 deletions

View File

@ -192,7 +192,7 @@ class DeezerAPI {
url: `/stream/${info}?q=9`
}
} catch (e) {
logger.warning('Qualiy fallback: ' + e);
logger.warn('Qualiy fallback: ' + e);
//Fallback
//9 - FLAC
//3 - MP3 320

View File

@ -80,7 +80,7 @@ class Integrations extends EventEmitter {
//Always accept join requests
this.discordRPC.subscribe('ACTIVITY_JOIN_REQUEST', (user) => {
this.discordRPC.sendJoinInvite(user.user).catch((e) => {
logger.warning('Unable to accept Discord invite: ' + e);
logger.warn('Unable to accept Discord invite: ' + e);
});
});
//Joined
@ -93,7 +93,6 @@ class Integrations extends EventEmitter {
});
//Connect to discord
this.discordRPC.login({clientId: CLIENTID}).catch(() => {
logger.info('Error connecting to Discord!');
//Wait 5s to retry
setTimeout(() => {
if (!this.discordReady)