Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
add multiImage community posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Apr 7, 2022
1 parent 056be7a commit def6373
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit def6373

Please sign in to comment.