theus / instantgram

:cloud: A bookmarklet for download photos in Instagram
http://theus.github.io/instantgram
Other
470 stars 43 forks source link

Open videos instead of the picture in 5.0.4 #79

Closed Rocket3192 closed 1 year ago

Rocket3192 commented 1 year ago

Hello, in version 5.0.4, we can't open a picture if the very next or the very previous content is a video, it will open the video instead

For example if you have an insta post containing 5 pics and a single video (so 6 contents in total)

If the video is on 3rd place, you can't open the 2nd picture neither you can open the 4th one, both will open the video, you can still open the 1st, 5th and 6th pictures

For P = picture V = video

P P V P P P ✔❌⭕️❌✔✔

P P P P V P ✔✔✔❌⭕️❌

I think there is another problem when there are multiple videos, like a video will open instead of another one

By the way I'm using the last version of Edge (chromium)

theus commented 1 year ago

Hey, can you provide a post link as an example?

Rocket3192 commented 1 year ago

Hey, can you provide a post link as an example?

For example : https://www.instagram.com/p/ClXFS-Vp4CV/ If you try to open the second picture, it will open the first video, 3rd picture will open the 4th video same for 5th picture, 6th and 8th pictures will open 7th video, 9th and 10th pictures work fine

Rocket3192 commented 1 year ago

Maybe a hint to find the reason, I figured when there is at least a certain number of pictures / videos in a post, the extension make it so it shows the second post for example on this : https://www.instagram.com/p/CocxUAiozUt/ It opens on the second picture : image

I don't know if that's related to the problem

Rocket3192 commented 1 year ago

Hey, any update on that matter ?

Thank you :)

Rocket3192 commented 1 year ago

Well I just tried this one : [redacted] And it fixes the problem

theus commented 1 year ago

@Rocket3192 sorry, I just removed the link since this repo stole the code of [instantgram]