FetchLyricsOptions
Since 3.0.0.
Shared by Node.getLyrics and Player.fetchCurrentLyrics. Every field is optional; omitted options use the defaults below.
Definition
export interface FetchLyricsOptions {
/** Skip the track's own source and ask the node's lyrics sources in priority order. Default: false. */
skipTrackSource?: boolean;
/**
* When the track's own source fails or finds nothing, ask the node again with `skipTrackSource=true`.
* Lavalink only. Default: true.
*/
retryWithoutTrackSource?: boolean;
/** NodeLink only: the lyrics language. */
language?: string;
/**
* Ask LRCLIB (https://lrclib.net) when the node fails or finds nothing.
* This sends the track title, artist and length to lrclib.net. Default: false.
*/
lrclibFallback?: boolean;
/** User-Agent sent to LRCLIB. LRCLIB asks clients to name themselves. Default: "magmastream". */
lrclibUserAgent?: string;
/** Timeout for each LRCLIB request, in milliseconds. Default: 8000. */
lrclibTimeoutMs?: number;
}
| Option | Default | Behavior |
|---|---|---|
skipTrackSource | false | On Lavalink, skip the track's own lyrics source and ask the node's configured sources in priority order. Not sent to NodeLink's native endpoint. |
retryWithoutTrackSource | true | Lavalink only: after an error or no usable lyrics, retry with skipTrackSource: true. No extra attempt when already skipping. NODE_PLUGIN_ERROR and NODE_DISCONNECTED stop node retries; LRCLIB fallback remains eligible. |
language | Omitted | NodeLink only: forwarded as the lang query parameter when nonempty. No client-side language default. |
lrclibFallback | false | Query LRCLIB after node failures or no usable node lyrics. Opt-in third-party request, not a node plugin. |
lrclibUserAgent | magmastream (https://gitryx.com/MagmaStream/magmastream) | User-Agent for LRCLIB; name your own application when overriding it. |
lrclibTimeoutMs | 8000 | Timeout in milliseconds for each LRCLIB request, not the entire lookup. |
Third-Party Metadata
Enabling LRCLIB fallback sends cleaned track title, artist, and available track length to lrclib.net directly from the client. Consider this metadata disclosure before enabling it. No LRCLIB requests are made by these lookup methods by default; the LRCLIB-specific options do not enable fallback on their own.
See Node.getLyrics for the complete error contract: notably, a fallback resolving null returns null even when every node attempt threw.