UNPKG

@duell10111/youtubei.js

Version:

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

35 lines 1.29 kB
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'; export default class PivotVideo extends YTNode { static type = 'PivotVideo'; video_id; thumbnail; title; short_byline_text; view_count_text; length_text; endpoint; overlay_icon; overlay_label; thumbnail_overlays; 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); } } //# sourceMappingURL=PivotVideo.js.map