saucybot-discord icon indicating copy to clipboard operation
saucybot-discord copied to clipboard

[NEW SITE] reddit.com/media unmangling

Open PG-Fuury opened this issue 2 years ago • 4 comments
trafficstars

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

PG-Fuury avatar Sep 27 '23 22:09 PG-Fuury

This one and v.redd.it would be very appreciated, sharing reddit content is a painful process (on purpose!)

LatGeek avatar Oct 19 '23 01:10 LatGeek

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.

Sn0wCrack avatar Oct 19 '23 04:10 Sn0wCrack

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.

Sn0wCrack avatar Oct 23 '23 08:10 Sn0wCrack