mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-20 10:35:42 -05:00
format and lint
This commit is contained in:
@@ -152,9 +152,8 @@ export default class Deezer implements StreamerWithLogin {
|
||||
}
|
||||
|
||||
async login(username: string, password: string): Promise<void> {
|
||||
if (this.arl) {
|
||||
await this.#loginViaArl(this.arl)
|
||||
} else {
|
||||
if (this.arl) await this.#loginViaArl(this.arl)
|
||||
else {
|
||||
const resp = await fetch('https://www.deezer.com/', { headers: this.headers })
|
||||
const setCookie = resp.headers.get('Set-Cookie') ?? ''
|
||||
const sid = setCookie.match(/sid=(fr[0-9a-f]+)/)![1]
|
||||
|
||||
Reference in New Issue
Block a user