mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
Things were getting a bit complicated and slow with the old parser so I decided to continue #44's work on the main codebase.
21 lines
642 B
JavaScript
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; |