@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
12 lines • 467 B
JavaScript
import { YTNode } from '../helpers.js';
import Thumbnail from './misc/Thumbnail.js';
class ContentPreviewImageView extends YTNode {
constructor(data) {
super();
this.image = data.image.sources.map((x) => new Thumbnail(x)).sort((a, b) => b.width - a.width);
this.style = data.style;
}
}
ContentPreviewImageView.type = 'ContentPreviewImageView';
export default ContentPreviewImageView;
//# sourceMappingURL=ContentPreviewImageView.js.map