mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-14 23:57:27 -05:00
add await to spotify login lmfao
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user