add await to spotify login lmfao

This commit is contained in:
uh wot 2024-08-21 17:30:28 +02:00
parent 44d79f83f1
commit 832d718b3d
No known key found for this signature in database
GPG Key ID: CB2454984587B781

View File

@ -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)