@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
16 lines • 647 B
JavaScript
import NavigationEndpoint from '../NavigationEndpoint.js';
import { YTNode } from '../../helpers.js';
class AnalyticsShortsCarouselCard extends YTNode {
constructor(data) {
super();
this.title = data.title;
this.shorts = data.shortsCarouselData.shorts.map((short) => ({
description: short.shortsDescription,
thumbnail_url: short.thumbnailUrl,
endpoint: new NavigationEndpoint(short.videoEndpoint)
}));
}
}
AnalyticsShortsCarouselCard.type = 'AnalyticsShortsCarouselCard';
export default AnalyticsShortsCarouselCard;
//# sourceMappingURL=AnalyticsShortsCarouselCard.js.map