mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-21 19:15:43 -05:00
format
plz
This commit is contained in:
@@ -80,7 +80,10 @@ export default class Deezer implements StreamerWithLogin {
|
||||
if (options?.arl) this.#loginViaArl(options.arl)
|
||||
}
|
||||
|
||||
async #apiCall<T extends keyof APIMethod>(method: T, data: { [key: string]: string | number | string[] } = {}): Promise<APIMethod[T]> {
|
||||
async #apiCall<T extends keyof APIMethod>(
|
||||
method: T,
|
||||
data: { [key: string]: string | number | string[] } = {}
|
||||
): Promise<APIMethod[T]> {
|
||||
let apiToken = this.apiToken
|
||||
if (method == 'deezer.getUserData' || method == 'user.getArl') apiToken = ''
|
||||
|
||||
@@ -93,7 +96,7 @@ export default class Deezer implements StreamerWithLogin {
|
||||
})}`
|
||||
|
||||
interface DeezerResponse {
|
||||
results: APIMethod[T];
|
||||
results: APIMethod[T]
|
||||
error: number[] | { [key: string]: string }
|
||||
}
|
||||
|
||||
|
||||
@@ -15,13 +15,19 @@ export interface DeezerLoginResponse {
|
||||
}
|
||||
|
||||
export interface DeezerMediaResponse {
|
||||
data: [{
|
||||
media: [{
|
||||
sources: [{
|
||||
data: [
|
||||
{
|
||||
media: [
|
||||
{
|
||||
sources: [
|
||||
{
|
||||
url: string
|
||||
}]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export interface DeezerUserData {
|
||||
|
||||
Reference in New Issue
Block a user