mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
17 lines
531 B
TypeScript
17 lines
531 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { type RawNode } from '../index.js';
|
|
import NavigationEndpoint from './NavigationEndpoint.js';
|
|
import Thumbnail from './misc/Thumbnail.js';
|
|
|
|
export default class HeroPlaylistThumbnail extends YTNode {
|
|
static type = 'HeroPlaylistThumbnail';
|
|
|
|
thumbnails: Thumbnail[];
|
|
on_tap_endpoint: NavigationEndpoint;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.on_tap_endpoint = new NavigationEndpoint(data.onTap);
|
|
}
|
|
} |