@imput/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js
18 lines • 759 B
JavaScript
import { YTNode } from '../helpers.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
class VideoInfoCardContent extends YTNode {
constructor(data) {
super();
this.title = new Text(data.videoTitle);
this.channel_name = new Text(data.channelName);
this.view_count = new Text(data.viewCountText);
this.video_thumbnails = Thumbnail.fromResponse(data.videoThumbnail);
this.duration = new Text(data.lengthString);
this.endpoint = new NavigationEndpoint(data.action);
}
}
VideoInfoCardContent.type = 'VideoInfoCardContent';
export default VideoInfoCardContent;
//# sourceMappingURL=VideoInfoCardContent.js.map