saucybot-discord
saucybot-discord copied to clipboard
[NEW SITE] reddit.com/media unmangling
Site Name: Reddit media embed
Site URL: https://reddit.com/media/
Example URLs: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F8pnbi675wsqb1.png https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fhaamnx8disqb1.png https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fdkmhkykrhtqb1.png
This one and v.redd.it would be very appreciated, sharing reddit content is a painful process (on purpose!)
I can take a look, but unlike Twitter/X I don't believe there's any kind of workaround API like fxtwitter or vxtwitter, so this might either be very hacky or not possible without something like that.
I've implemented the "unmangling" of the reddit.com/media links into SaucyBot now.
I'll investigate at a later date of how to do video embeds, my current idea is potentially using youtube-dl or looking at how youtube-dl does it and implement that.
Would mainly match v.redd.it URLs, but might also work with regular reddit links.