mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +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
16 lines
464 B
TypeScript
16 lines
464 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import Thumbnail from './misc/Thumbnail.js';
|
|
|
|
export default class ThumbnailLandscapePortrait extends YTNode {
|
|
static type = 'ThumbnailLandscapePortrait';
|
|
|
|
landscape: Thumbnail[];
|
|
portrait: Thumbnail[];
|
|
|
|
constructor (data: RawNode) {
|
|
super();
|
|
this.landscape = Thumbnail.fromResponse(data.landscape);
|
|
this.portrait = Thumbnail.fromResponse(data.portrait);
|
|
}
|
|
} |