diff --git a/src/parser/classes/PostMultiImage.ts b/src/parser/classes/PostMultiImage.ts new file mode 100644 index 000000000..9a95f01a8 --- /dev/null +++ b/src/parser/classes/PostMultiImage.ts @@ -0,0 +1,17 @@ +import Parser from '../index'; +import BackstageImage from './BackstageImage'; + +import { YTNode } from '../helpers'; + +class PostMultiImage extends YTNode { + static type = 'PostMultiImage'; + + images : BackstageImage[]; + + constructor(data: any) { + super(); + this.images = Parser.parseArray(data.images, BackstageImage); + } +} + +export default PostMultiImage; \ No newline at end of file diff --git a/src/parser/map.ts b/src/parser/map.ts index 476a14bf9..6b8747ebf 100644 --- a/src/parser/map.ts +++ b/src/parser/map.ts @@ -232,6 +232,7 @@ import { default as PlaylistVideoList } from './classes/PlaylistVideoList'; import { default as PlaylistVideoThumbnail } from './classes/PlaylistVideoThumbnail'; import { default as Poll } from './classes/Poll'; import { default as Post } from './classes/Post'; +import { default as PostMultiImage } from './classes/PostMultiImage'; import { default as ProfileColumn } from './classes/ProfileColumn'; import { default as ProfileColumnStats } from './classes/ProfileColumnStats'; import { default as ProfileColumnStatsEntry } from './classes/ProfileColumnStatsEntry'; @@ -551,6 +552,7 @@ export const YTNodes = { PlaylistVideoThumbnail, Poll, Post, + PostMultiImage, ProfileColumn, ProfileColumnStats, ProfileColumnStatsEntry,