diff --git a/lib/posts.coffee b/lib/posts.coffee index 989c793..10bf27b 100644 --- a/lib/posts.coffee +++ b/lib/posts.coffee @@ -70,6 +70,8 @@ class InstagramPosts extends Readable post.media = rawPost.images['standard_resolution'].url when 'video' post.media = rawPost.videos['standard_resolution'].url + when 'carousel' + post.media = rawPost.carousel_media.map((media) -> media.images['standard_resolution'].url) else throw new Error("Instagram did not return a URL for the media on post #{post.id}")