UNPKG

@steepleinc/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

26 lines 1.23 kB
import { Parser } from '../index.js'; import Text from './misc/Text.js'; import Button from './Button.js'; import VideoOwner from './VideoOwner.js'; import SubscribeButton from './SubscribeButton.js'; import MetadataRowContainer from './MetadataRowContainer.js'; import { YTNode } from '../helpers.js'; class VideoSecondaryInfo extends YTNode { constructor(data) { super(); this.owner = Parser.parseItem(data.owner, VideoOwner); this.description = new Text(data.description); if (Reflect.has(data, 'attributedDescription')) { this.description = Text.fromAttributed(data.attributedDescription); } this.subscribe_button = Parser.parseItem(data.subscribeButton, [SubscribeButton, Button]); this.metadata = Parser.parseItem(data.metadataRowContainer, MetadataRowContainer); this.show_more_text = new Text(data.showMoreText); this.show_less_text = new Text(data.showLessText); this.default_expanded = data.defaultExpanded; this.description_collapsed_lines = data.descriptionCollapsedLines; } } VideoSecondaryInfo.type = 'VideoSecondaryInfo'; export default VideoSecondaryInfo; //# sourceMappingURL=VideoSecondaryInfo.js.map