function parseTralbum
parseTralbum(
html: string,
sourceUrl: string
): Tralbum | null

Returns the release on the Bandcamp page html, fetched from sourceUrl; null when the page has no release data, no audio or no streamable track. Stream URLs outside bcbits.com are dropped.

Parameters

html: string
sourceUrl: string

Return Type

Tralbum | null

Usage

import { parseTralbum } from "api/remote/bandcamp-tralbum.ts";