PredaaA / predacogs

Cogs for Red Discordbot
MIT License
30 stars 25 forks source link

Images from Redgifs no longer working #80

Closed DanasaurUK closed 1 year ago

DanasaurUK commented 1 year ago

It looks like due to backend changes on redgifs, https://i.redgifs.com embeds no longer work, is there a way for these to be removed/disabled/filtered out?

PredaaA commented 1 year ago

Hi, thanks for the report. I've just fixed that on the API side, it should now return the correct link for redgifs images.

DanasaurUK commented 1 year ago

Sorry I forgot to mention I am using the martine API, Redgifs appears to be working with a static thumbnail, not a gif anymore, but the reddit.com source gifs/videos are not working

PredaaA commented 1 year ago

Yes, I have fixed it on Martine API side. Now it will return a link as the following: https://www.redgifs.com/watch/IMAGE_ID which displays as a embed which contains the image or the gif, gifs are just videos instead on those. As for the reddit source, it's not going to work so I have made it ignore the redgifs urls if it's the one selected.

DanasaurUK commented 1 year ago

Thank you for doing that, but now the Martine API does not work with htps://reddit.com posts

PredaaA commented 1 year ago

Hmm can you explain what's happening exactly? I'm seeing it working with all the commands.

DanasaurUK commented 1 year ago

Attached is a screenshot of what I see when the cog attempts to embed an image from a http://reddit.com post, the media link is https://www.reddit.com/r/BustyPetite/comments/13bltcd/they_taste_as_nice_as_they_look/

It appears as though the cog is retrieving the post URL rather than the image/gif/video url

Screenshot_2023-05-11-15-59-37-78_572064f74bd5f9fa804b05334aa4f912

PredaaA commented 1 year ago

Ah alright, I've just fixed it, thanks for reporting that too

DanasaurUK commented 1 year ago

That is working now, thanks for sorting and for the extremely fast responses!