function playlistImageUrl
playlistImageUrl(
playlist: { id: string; updatedAt?: Date; isPublic?: boolean; },
token?: string | null
): string

Returns the URL of the cover of playlist, versioned on updatedAt, which a new cover bumps. A private playlist's URL carries the media token, as for dumpFileUrl. A public one doesn't, so that its URL is the same for everyone. A playlist without isPublic counts as public.

Parameters

playlist: { id: string; updatedAt?: Date; isPublic?: boolean; }
optional
token: string | null

Return Type

string

Usage

import { playlistImageUrl } from "src/utils/shared/urls.ts";