mirror of
https://git.gay/lucida/lucida
synced 2025-12-11 20:15:14 +01:00
add await to spotify login lmfao
This commit is contained in:
parent
44d79f83f1
commit
832d718b3d
@ -30,8 +30,8 @@ class Spotify implements StreamerWithLogin {
|
|||||||
constructor(options: LibrespotOptions) {
|
constructor(options: LibrespotOptions) {
|
||||||
this.client = new Librespot(options)
|
this.client = new Librespot(options)
|
||||||
}
|
}
|
||||||
login(username: string, password: string) {
|
async login(username: string, password: string) {
|
||||||
return this.client.login(username, password)
|
return await this.client.login(username, password)
|
||||||
}
|
}
|
||||||
#getUrlParts(url: string): ['artist' | 'album' | 'track' | 'episode' | 'show', string] {
|
#getUrlParts(url: string): ['artist' | 'album' | 'track' | 'episode' | 'show', string] {
|
||||||
const urlObj = new URL(url)
|
const urlObj = new URL(url)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user