@imput/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js
18 lines • 645 B
JavaScript
import { timeToSeconds } from '../../utils/Utils.js';
import { YTNode } from '../helpers.js';
import Text from './misc/Text.js';
class WatchCardCompactVideo extends YTNode {
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;
}
}
WatchCardCompactVideo.type = 'WatchCardCompactVideo';
export default WatchCardCompactVideo;
//# sourceMappingURL=WatchCardCompactVideo.js.map