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

Add 'multiImage' community posts #67

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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