mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
23
lib/parser/classes/MusicDescriptionShelf.js
Normal file
23
lib/parser/classes/MusicDescriptionShelf.js
Normal file
@@ -0,0 +1,23 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user