Comment 1 for bug 1380108

Revision history for this message
Peter Levi (peterlevi) wrote : Re: Dedicated UI to add Imgur/Reddit sources (as MediaRSS)

We will add dedicated Reddit support, not fallback to MediaRSS. This will allow us to sort by top for a given time period, and we will also be able to fetch titles, over_18 rating, origin URL to reddit post, etc.

The format of the URLs to get posts in json is described here: http://www.reddit.com/dev/api#GET_{sort}
http://stackoverflow.com/questions/15009422/what-are-the-different-sorting-types-allowed-in-reddits-json-api

Basically either:
http://www.reddit.com/r/AutumnPorn.json?limit=100
or
http://www.reddit.com/r/AutumnPorn/top.json?t=all&limit=100

We can either provide a GUI to set sorting to top or not, or we may let the user choose the sorting on the site and paste the URL with proper sorting, and we'll just append ".json" and "limit=100" where they should be.

We need to filter only links to direct images (skip gifs as they might be animated).
Some Imgur links point not to the image, but to the Imgur page like https://imgur.com/VBnRRaR. We may either try to append "i.XXX.jpg" directly and fail if this is not the correct link, or we may use Imgur's API to get the direct link, but their API enforces limits: https://api.imgur.com/models/image