mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +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
19 lines
496 B
TypeScript
19 lines
496 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
|
|
export default class PlayerLegacyDesktopYpcOffer extends YTNode {
|
|
static type = 'PlayerLegacyDesktopYpcOffer';
|
|
|
|
title: string;
|
|
thumbnail: string;
|
|
offer_description: string;
|
|
offer_id: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = data.itemTitle;
|
|
this.thumbnail = data.itemThumbnail;
|
|
this.offer_description = data.offerDescription;
|
|
this.offer_id = data.offerId;
|
|
}
|
|
} |