UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

16 lines 549 B
import { YTNode } from '../helpers.js'; import { Text } from '../misc.js'; class ContentMetadataView extends YTNode { constructor(data) { super(); this.metadata_rows = data.metadataRows.map((row) => ({ metadata_parts: row.metadataParts.map((part) => ({ text: Text.fromAttributed(part.text) })) })); this.delimiter = data.delimiter; } } ContentMetadataView.type = 'ContentMetadataView'; export default ContentMetadataView; //# sourceMappingURL=ContentMetadataView.js.map