Skip to content

best way to save what you love

instagram: add downloading of single image

dumbmoron1f6c7c8eadad
diff --git a/src/modules/processing/services/instagram.js b/src/modules/processing/services/instagram.js
index ededd95d..b3e0df1c 100644
--- a/src/modules/processing/services/instagram.js
+++ b/src/modules/processing/services/instagram.js
@@ -71,6 +71,11 @@ export default async function(obj) {
})
} else if (data?.shortcode_media?.video_url) {
single = data.shortcode_media.video_url
+ } else if (data?.shortcode_media?.display_url) {
+ return {
+ urls: data?.shortcode_media?.display_url,
+ filename: 'image.jpg'
+ }
} else {
return { error: 'ErrorEmptyDownload' }
}