TheKonka / instagram-download-browser-extension

A browser extension for Instagram. Help you download images and videos.
MIT License
172 stars 10 forks source link

Wish: customize download filename template #11

Open sincere-music opened 7 months ago

sincere-music commented 7 months ago

I always save images in a folder named after the account name, so I’d like to remove that first item from the template. Great to find a working download extension again!

TheKonka commented 6 months ago

image

This feature has been implemented, thanks for using.

sincere-music commented 6 months ago

Great! I can’t see it in the live version though (1.5.0, updated 7 January, in Firefox), is this yet to be included in a release?

TheKonka commented 6 months ago

image

Maybe you're looking in the wrong place, I put it in the popup, you just need to click on this icon in Toolbar.

DumbIdiot commented 4 months ago

I'm on Firefox 123.0.1 and extension version 2.0.5 and none of the filename settings work. It always downloads with the original filename.

TheKonka commented 4 months ago

I'm on Firefox 123.0.1 and extension version 2.0.5 and none of the filename settings work. It always downloads with the original filename.

image

image

Hello, what media did you download? Except for the cover of videos and reels ( for now, I'm keeping their default filenames ), the downloaded file name will have username and date by default.

DumbIdiot commented 4 months ago

Videos and images, both single posts and carousels.

I just tried saving the same image as your example and it doesn't work for me for some reason. Yes, I have the filename settings turned on.

Screenshot 2024-03-15 074416

Edit: I found that some videos work but most don't and images never work so far. Link 1 doesn't work: https://www.instagram.com/p/C4f5-ObC1BT/ Link 2 does work: https://www.instagram.com/p/C4dwrPSCGbG/ Screenshot 2024-03-15 083058

TheKonka commented 4 months ago

@DumbIdiot Ok, thanks ,I have reproduced the problem. I will fix it later.

TheKonka commented 3 months ago

@DumbIdiot Hello, the latest version 2.0.6 is available now. You can try it !

DumbIdiot commented 3 months ago

@DumbIdiot Hello, the latest version 2.0.6 is available now. You can try it !

The filenames work correctly now, but now opening/saving carousels doesn't work anymore. It only opens/saves the first one.

DumbIdiot commented 3 months ago

@TheKonka I had a look at the last commit and in src/content/utils.ts @ row 168 you seem to forgotten to change url: getImgOrVedioUrl(data), to url: getImgOrVedioUrl(item),

TheKonka commented 3 months ago

@TheKonka I had a look at the last commit and in src/content/utils.ts @ row 168 you seem to forgotten to change url: getImgOrVedioUrl(data), to url: getImgOrVedioUrl(item),

Oh, thanks! Sorry for the mistake. I have fixed it. Please waiting the review..

phere-x commented 1 day ago

is there a way to change the format of the filename? I prefer to have the datetime at the beginning followed by the ID & then username, with separators of my chosing to make it more readable. It also follows the naming pattern I've used with gallery-dl.

e.g. 2024-07-06 16.56.58 449985739_1113835120103027_7993016259701057299 cristiano