QuantumBadger / RedReader

An unofficial open source Android app for Reddit.
GNU General Public License v3.0
1.97k stars 483 forks source link

Provide a method to add subreddits with Geofilters #905

Open tokariu opened 3 years ago

tokariu commented 3 years ago

if you open the reddit website in the browser by default the GLOBAL geofilter is applied. it is like opening:

reddit.com/r/popular/?geo_filter=GLOBAL

however, we can change that to other countries, like:

reddit.com/r/popular/?geo_filter=GERMAN

and then only popular posts from subreddits of the country specific area are shown.

if I try to add a subreddit in RedReader with the URL above it gives me an error: invalid subreddit name. it doesn't handle the GEOFILTER parameter.

It would be good if RedReader could add a geofilter option, it's currently missing.

stffnn commented 2 years ago

I'd really appreciate this feature too.

Reddit uses ISO 3166-1 alpha-2 country codes for the geo_filter parameter. To set Germany you'd have to use /?geo_filter=DE. Using https://www.reddit.com/r/popular/?geo_filter=DE in 'Custom Location - URL' redirects to the general /popular/hot for me. No error but still doesn't handle geo_filter.

Also this issue is the same as issue #887