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

Add Teddit redirects #353

Closed
wants to merge 4 commits into from
Closed

Add Teddit redirects #353

wants to merge 4 commits into from

Conversation

FIGBERT
Copy link

@FIGBERT FIGBERT commented Mar 9, 2021

Closes #306. Doesn't include Libreddit support, as i.redd.it and v.redd.it links include Teddit-specific logic.

This doesn't redirect rddt.co links, but those
work like Bitly and would require a more in-depth
solution.
This initial implementation is built around Teddit
specifically, and thus may not work with
Libreddit. This could be added in the future but
for now I'm removing it.
Unsure as to why but for the time being the ".mp4"
extension on v.redd.it Teddit links is not part
of the formatted link. Looking into this.
@somini
Copy link
Contributor

somini commented Apr 16, 2021

This doesn't work for libreddit? What's the missing URL?

@FIGBERT
Copy link
Author

FIGBERT commented Apr 16, 2021

It could be made to work with libreddit, but would require some changes. If you look at commit 98ce4ed, you see that the i.redd.it and v.redd.it redirects use Teddit-specific URL paths. libreddit uses different paths for video and images.

If we wanted to support both, we could do one of two things:

  1. Not redirect i.redd.it or v.redd.it links.
  2. Include a boolean setting that toggles between Teddit and libreddit and URL paths accordingly.

I went with Teddit because that's what I personally use, but I would be willing to do further work to support both projects.

@somini
Copy link
Contributor

somini commented Apr 18, 2021

I see, this requires more work. libreddit (or teddit) might accept a request to standardize on the image/video location.

libreddit/libreddit#147

It appears that Teddit has a more robust media implementation, so I think this MR should be good to merge.

@acarasimon96 acarasimon96 mentioned this pull request Sep 10, 2021
31 tasks
@zedeus zedeus closed this in 3c45630 Dec 27, 2021
@zedeus
Copy link
Owner

zedeus commented Dec 27, 2021

Thanks @FIGBERT! I've decided to not support v.redd.it and i.redd.it for now, due to some issues described in the code's comments. I've also talked a bit about it here: libreddit/libreddit#371 (comment)

@FIGBERT FIGBERT deleted the teddit branch January 16, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replacement for Reddit: teddit.net and/or libredd.it
3 participants