mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
20 lines
626 B
JavaScript
20 lines
626 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
const Text = require('./Text');
|
|
|
|
class PlaylistSidebarPrimaryInfo {
|
|
type = 'PlaylistSidebarPrimaryInfo';
|
|
|
|
constructor(data) {
|
|
this.stats = data.stats.map((stat) => new Text(stat));
|
|
this.thumbnail_renderer = Parser.parse(data.thumbnailRenderer);
|
|
this.title = new Text(data.title);
|
|
this.menu = data.menu && Parser.parse(data.menu);
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
this.description = new Text(data.description);
|
|
}
|
|
}
|
|
|
|
module.exports = PlaylistSidebarPrimaryInfo; |