Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize Reddit media links #5582

Closed
HeeroWingZero opened this issue Sep 23, 2023 · 0 comments
Closed

Normalize Reddit media links #5582

HeeroWingZero opened this issue Sep 23, 2023 · 0 comments
Labels
Source Support Upload/Source support

Comments

@HeeroWingZero
Copy link

Another currently unsupported variant of reddit links. These are semi-direct links to individual images with a link back to their original post. You can access these pages by clicking on the image on a post, which will take you to one. Examples:

Main Post: https://www.reddit.com/r/PrequelMemes/comments/gt4mf3/turned_general_grievous_into_sailor_moon_because/
Media Link: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F6c86llczqs151.jpg

Main Post: https://www.reddit.com/r/VirtualYoutubers/comments/jt3oq0/a_few_pixelated_vtubers_made_by_me/
Media Link: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F7kc1eb8knvy51.png

Now it gets a little trickier when it comes to posts with multiple images, which generate a much longer sample link when you click on them. These sample links can easily be converted into the regular full link though. See below:

Main Post: https://www.reddit.com/r/Genshin_Impact/comments/yzv9jt/painting_studyturned_albedo/
Media Link 1 (sample): https://www.reddit.com/media?url=https%3A%2F%2Fpreview.redd.it%2Fz90lvr65c11a1.jpg%3Fwidth%3D2569%26format%3Dpjpg%26auto%3Dwebp%26s%3D9a81537379db979c285e44b64a548014c45c6cc9
Media Link 1 (original): https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fz90lvr65c11a1.jpg
Media Link 2 (sample): https://www.reddit.com/media?url=https%3A%2F%2Fpreview.redd.it%2Fgpoy9r65c11a1.jpg%3Fwidth%3D925%26format%3Dpjpg%26auto%3Dwebp%26s%3Dab3326a5bfa031fde155e5f5656e3832cc3eaceb
Media Link 2 (original): https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fgpoy9r65c11a1.jpg

Especially worth noting, these pages seem designed to keep users from accessing the actual direct image link. If you right click and select to open the image in a new tab it will simply open a duplicate of the media page. The same result happens if you try to go in through the sources tab of inspect element or even just copy an i.redd.it direct link into the browser (try it with https://i.redd.it/gpoy9r65c11a1.jpg for example). I haven't been able to test and see if these remain active when the main post is deleted.

@nonamethanks nonamethanks added the Source Support Upload/Source support label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source Support Upload/Source support
Projects
None yet
Development

No branches or pull requests

2 participants