Compare commits

...

2 Commits

Author SHA1 Message Date
c091fc8527 Merge zdocker:instasync 2023-04-29 05:47:29 +00:00
8c7426d93a Hack around the .heic extensions from Instagram. 2023-04-29 06:46:18 +01:00

View File

@@ -110,7 +110,9 @@ async function doWork() {
//Download the media to our server //Download the media to our server
const parts = post.media_url.split('/'); const parts = post.media_url.split('/');
const fileName = parts[parts.length - 1].split('?')[0]; // HACK: despite the .heic extensions, these are JPEG files right now
// This will probably change in the future and break things.
const fileName = parts[parts.length - 1].split('?')[0].replace('.heic', '.jpg');
const downloader = new Downloader({ const downloader = new Downloader({
url: post.media_url, url: post.media_url,