Wikidepia / InstaFix

Fix Instagram embeds in Discord (and Telegram!)
MIT License
676 stars 40 forks source link

Problem with the `/grid/` endpoint #84

Open barraIhsan opened 8 months ago

barraIhsan commented 8 months ago

If you open up https://ddinstagram.com/grid/Cwk6ka7PONG/ on browser, it will not redirect you to the instagram.com/p/ url like the others do.

Why does it matter, tho? (because the link is hidden because it gets replaced by direct media), well as you can see we can use /grid to make reels direct link (no caption) to work! (for some reason, #37 doesn't work at all, it returns SSL_ERROR_INTERNAL_ERROR_ALERT error. please make it work back, that was essential for reels that have useless caption).

And there is two things happened when you click on the /grid link.

  1. If it's not a grid (post that only has one photos, reels included), it will redirect to instagram cdn instead scontent.cdninstagram.com
  2. If it's a grid, it will not redirect anywhere, I think it should redirect to instagram.com/p/

/grid also doesn't work for video posts, but there's many of them (404 Not Found), example: https://instagram.com/p/C3sd_sRo-SH/ (this is what I could find) If you put /p, /reel, /reels instead it will only show the first video

Wikidepia commented 8 months ago

d.ddinstagram.com should work now

barraIhsan commented 8 months ago

d.ddinstagram.com should work now

Just suggestion, maybe it would be helpful to put this in the README file? Cause before, I had no idea it exists until I search through the issue tab

barraIhsan commented 7 months ago

instead it will only show the first video

what about we add a number in the end? So https://ddinstagram.com/p/C3sd_sRo-SH/1 will show the first post, https://ddinstagram.com/p/C3sd_sRo-SH/2 will show the second, etc.

barraIhsan commented 6 months ago

another note, grid only shows the first 4 picture.