mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 23:09:28 +00:00
feat: add parser support for MultiImage community posts (#298)
This commit is contained in:
17
src/parser/classes/PostMultiImage.ts
Normal file
17
src/parser/classes/PostMultiImage.ts
Normal file
@@ -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;
|
||||
Reference in New Issue
Block a user