UNPKG

@antoniojps/youtubei.js

Version:

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

21 lines 661 B
import { timeToSeconds } from '../../utils/Utils.js'; import { YTNode } from '../helpers.js'; import Text from './misc/Text.js'; export default class WatchCardCompactVideo extends YTNode { static type = 'WatchCardCompactVideo'; title; subtitle; duration; style; constructor(data) { super(); this.title = new Text(data.title); this.subtitle = new Text(data.subtitle); this.duration = { text: new Text(data.lengthText).toString(), seconds: timeToSeconds(data.lengthText.simpleText) }; this.style = data.style; } } //# sourceMappingURL=WatchCardCompactVideo.js.map