Files
YouTube.js/lib/parser/classes/VideoSecondaryInfo.js
LuanRT 68cb841c00 refactor!: finish parser migration
Finally! :)

This removes all code related to the old parser.

#65
2022-07-11 06:19:10 -03:00

21 lines
632 B
JavaScript

'use strict';
const Parser = require('..');
const Text = require('./Text');
class VideoSecondaryInfo {
type = 'VideoSecondaryInfo';
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;