function resolveBandcamp
resolveBandcamp(
pageUrl: string,
unnamed 1?: { force?: boolean; }
): Promise<Tralbum>

Returns the tracklist of the Bandcamp page pageUrl, from the cache when it was resolved in the last 12 hours. force skips the cache: the player sets it when it re-resolves a queue whose URLs expired or are about to, which a cached entry could hand back.

Parameters

pageUrl: string
optional
unnamed 1: { force?: boolean; }

Return Type

Promise<Tralbum>

Throws

APIException

400 when pageUrl isn't a public bandcamp.com URL, 502 when Bandcamp can't be reached or doesn't answer with a page, 404 when the page has nothing streamable.

Usage

import { resolveBandcamp } from "api/remote/bandcamp-streams.ts";