[gpodder] Re: WebService API: Language selection for podcast toplist and tag

  • From: Thomas Perl <th.perl@xxxxxxxxx>
  • To: gpodder@xxxxxxxxxxxxx
  • Date: Sun, 15 Feb 2015 11:34:39 +0100

Hi,

2015-02-06 8:51 GMT+01:00 Sven Wiegand <sven@xxxxxxxxx>:
> I have one question regarding the web service API: I would like to use the
> toplist (http://gpodder.net/toplist/10.json) and podcasts for tag
> (http://gpodder.net/api/2/tag/technology/10.json) requests. On the gpodder
> website the user can filter the results by language, but I haven't found any
> way to filter the language using the webservice interface. I've already
> tried a "lang=de" query parameter and I've also tried a "Accept-Language"
> header set to "de-DE", but nothing worked.
>
> Any tips?

Does not look like we do any language filtering on the server side:

https://github.com/gpodder/mygpo/blob/master/mygpo/api/advanced/directory.py#L39

Maybe we should accept and handle the "lang" query parameter, let's
see what Stefan has to say about this one.

Thanks,
Thomas

Other related posts: