Files
YouTube.js/lib/parser/contents/classes/VideoSecondaryInfo.js
LuanRT 359020193b dev: start parser refactor on the main codebase, see #65 and #44
Things were getting a bit complicated and slow with the old parser so I decided to continue #44's work on the main codebase.
2022-06-06 04:19:14 -03:00

21 lines
642 B
JavaScript

'use strict';
const Parser = require('..');
const Text = require('./Text');
class VideoSecondaryInfo {
type = 'videoSecondaryInfoRenderer';
constructor(data) {
this.owner = Parser.parse(data.owner);
this.description = new Text(data.description);
this.subscribe_button = Parser.parse(data.subscribeButton);
this.metadata = Parser.parse(data.metadataRowContainer);
this.show_more_text = data.showMoreText;
this.show_less_text = data.showLessText;
this.default_expanded = data.defaultExpanded;
this.description_collapsed_lines = data.descriptionCollapsedLines;
}
}
module.exports = VideoSecondaryInfo;