function parsePlaylistPage
parsePlaylistPage(
html: string,
listId: string
): YouTubePlaylist | null

Returns the playlist listId as read from its page html; null when the page has no ytInitialData or no track in it.

Parameters

html: string
listId: string

Return Type

Usage

import { parsePlaylistPage } from "api/remote/youtube-playlist.ts";