From 832d718b3df20e4a5cbd3765361cd2f8e67bba6d Mon Sep 17 00:00:00 2001 From: uh wot Date: Wed, 21 Aug 2024 17:30:28 +0200 Subject: [PATCH] add await to spotify login lmfao --- src/streamers/spotify/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/streamers/spotify/main.ts b/src/streamers/spotify/main.ts index 96b4b76..0a99408 100644 --- a/src/streamers/spotify/main.ts +++ b/src/streamers/spotify/main.ts @@ -30,8 +30,8 @@ class Spotify implements StreamerWithLogin { constructor(options: LibrespotOptions) { this.client = new Librespot(options) } - login(username: string, password: string) { - return this.client.login(username, password) + async login(username: string, password: string) { + return await this.client.login(username, password) } #getUrlParts(url: string): ['artist' | 'album' | 'track' | 'episode' | 'show', string] { const urlObj = new URL(url)