From 73850facc255b003f03c49e9524d89b7dd6624ba Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Thu, 7 Apr 2022 21:53:06 -0400 Subject: [PATCH] add multiImage community posts (#67) --- app/helper.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/helper.js b/app/helper.js index b1b7a2c..aa159f9 100644 --- a/app/helper.js +++ b/app/helper.js @@ -381,6 +381,13 @@ class YoutubeGrabberHelper { }) } ) + } else if ('postMultiImageRenderer' in post.backstagePostThreadRenderer.post.backstagePostRenderer.backstageAttachment) { + postData.postContent = { + type: 'multiImage', + content: post.backstagePostThreadRenderer.post.backstagePostRenderer.backstageAttachment.postMultiImageRenderer.images.map(im => { + return im.backstageImageRenderer.image.thumbnails + }) + } } else { console.error('New type of post detected. Please report this to the repository with the log and channel that was scraped') console.log(post.backstagePostThreadRenderer.post.backstagePostRenderer.backstageAttachment.keys())