mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
feat: add ThumbnailOverlayInlineUnplayable renderer
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
const Parser = require('..');
|
||||
|
||||
// TODO: implement all renderers related to this
|
||||
class RichSection {
|
||||
type = 'RichSection';
|
||||
|
||||
constructor(data) {
|
||||
this.contents = Parser.parse(data.contents);
|
||||
// this.contents = Parser.parse(data.content);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const Text = require('./Text');
|
||||
|
||||
class ThumbnailOverlayInlineUnplayable {
|
||||
type = 'ThumbnailOverlayInlineUnplayable';
|
||||
|
||||
constructor(data) {
|
||||
this.text = new Text(data.text).toString();
|
||||
this.icon_type = data.icon.iconType;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ThumbnailOverlayInlineUnplayable;
|
||||
Reference in New Issue
Block a user