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

15 lines
273 B
JavaScript

'use strict';
class MetadataBadge {
constructor(data) {
data.icon &&
(this.icon_type = data.icon.iconType);
data.style &&
(this.style = data.style);
this.tooltip = data.tooltip || data.iconTooltip || null;
}
}
module.exports = MetadataBadge;