Skip to content

Commit

Permalink
feat(parser): Add EomSettingsDisclaimer node (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Jul 26, 2024
1 parent 1e29019 commit a9bf225
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/parser/classes/EomSettingsDisclaimer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Text from './misc/Text.js';
import { YTNode } from '../helpers.js';
import { type RawNode } from '../index.js';

export default class EomSettingsDisclaimer extends YTNode {
static type = 'EomSettingsDisclaimer';

disclaimer: Text;
info_icon: {
icon_type: string
};
usage_scenario: string;

constructor(data: RawNode) {
super();
this.disclaimer = new Text(data.disclaimer);
this.info_icon = {
icon_type: data.infoIcon.iconType
};
this.usage_scenario = data.usageScenario;
}
}
1 change: 1 addition & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export { default as EndScreenPlaylist } from './classes/EndScreenPlaylist.js';
export { default as EndScreenVideo } from './classes/EndScreenVideo.js';
export { default as EngagementPanelSectionList } from './classes/EngagementPanelSectionList.js';
export { default as EngagementPanelTitleHeader } from './classes/EngagementPanelTitleHeader.js';
export { default as EomSettingsDisclaimer } from './classes/EomSettingsDisclaimer.js';
export { default as ExpandableMetadata } from './classes/ExpandableMetadata.js';
export { default as ExpandableTab } from './classes/ExpandableTab.js';
export { default as ExpandableVideoDescriptionBody } from './classes/ExpandableVideoDescriptionBody.js';
Expand Down

0 comments on commit a9bf225

Please sign in to comment.