mirror of
https://git.lucida.su/lucida/verdana.git
synced 2026-08-19 13:55:50 +00:00
add await to spotify login lmfao
This commit is contained in:
parent
44d79f83f1
commit
832d718b3d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue