Files
YouTube.js/lib/parser/classes/MusicDescriptionShelf.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

23 lines
471 B
JavaScript

'use strict';
const Text = require('./Text');
class MusicDescriptionShelf {
type = 'MusicDescriptionShelf';
constructor(data) {
this.description = new Text(data.description);
if (this.max_collapsed_lines) {
this.max_collapsed_lines = data.maxCollapsedLines;
}
if (this.max_expanded_lines) {
this.max_expanded_lines = data.maxExpandedLines;
}
this.footer = new Text(data.footer);
}
}
module.exports = MusicDescriptionShelf;