Resolves a Bandcamp page to its streamable tracks when the native player
starts it, for GET /api/remote/bandcamp. The stream URLs are signed and
expire 24 hours after the page is fetched, so unlike the embed URL they
can't be stored in the dump's preview. The browser plays them from bcbits
directly.
f
resolveBandcamp(): Promise<Tralbum>
pageUrl: string,
unnamed 1?: { force?: boolean; }
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.
Usage
import * as mod from "api/remote/bandcamp-streams.ts";