From 1f6c7c8eadaddcd7ff1c846f94425e730bdfa8be Mon Sep 17 00:00:00 2001 From: dumbmoron <136796770+dumbmoron@users.noreply.github.com> Date: Sun, 20 Aug 2023 13:26:35 +0000 Subject: [PATCH] instagram: add downloading of single image --- src/modules/processing/services/instagram.js | 5 +++++ 1 file changed, 5 insertions(+) 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' } }