Reddit image source

Bug #1380108 reported by Peter Levi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Variety
Fix Released
High
Peter Levi

Bug Description

Subreddits like /r/wallpapers, /r/EarthPorn, etc. have 80% imgur submissions that are accessible at
http://imgur.com/r/wallpapers and as a MediaRSS feed at http://imgur.com/r/wallpapers/rss.

Add a GUI in the Add Sources list for adding such sources.

Peter Levi (peterlevi)
Changed in variety:
status: New → Won't Fix
status: Won't Fix → New
Revision history for this message
Peter Levi (peterlevi) wrote :

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

summary: - Dedicated UI to add Imgur/Reddit sources (as MediaRSS)
+ Reddit image source
Peter Levi (peterlevi)
Changed in variety:
status: New → Fix Committed
Peter Levi (peterlevi)
Changed in variety:
milestone: none → 0.5.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.