mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-13 04:35:28 +01:00
instagram: add downloading of single image
This commit is contained in:
parent
dfdda06099
commit
1f6c7c8ead
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ export default async function(obj) {
|
||||||
})
|
})
|
||||||
} else if (data?.shortcode_media?.video_url) {
|
} else if (data?.shortcode_media?.video_url) {
|
||||||
single = 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 {
|
} else {
|
||||||
return { error: 'ErrorEmptyDownload' }
|
return { error: 'ErrorEmptyDownload' }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue