@duell10111/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
26 lines • 1.12 kB
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import Thumbnail from './misc/Thumbnail.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import ThumbnailOverlayTimeStatus from './ThumbnailOverlayTimeStatus.js';
import Text from './misc/Text.js';
class PivotVideo extends YTNode {
constructor(data) {
super();
this.video_id = data.videoId;
this.thumbnail = Thumbnail.fromResponse(data.thumbnail);
this.title = new Text(data.title);
this.short_byline_text = new Text(data.shortBylineText);
this.view_count_text = new Text(data.viewCountText);
this.length_text = new Text(data.lengthText);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.overlay_icon = {
icon_type: data.overlayIcon.iconType
};
this.overlay_label = new Text(data.overlayLabel);
this.thumbnail_overlays = Parser.parseArray(data.thumbnailOverlays, ThumbnailOverlayTimeStatus);
}
}
PivotVideo.type = 'PivotVideo';
export default PivotVideo;
//# sourceMappingURL=PivotVideo.js.map