timdorr/spotifeed

The only missing information is the language tag

theboubougne opened this issue · 6 comments

If the language information could be extracted from the Spotify API it would be great!

Right now I'm hard-coding to the US market, which might limit some non-English options:

JSON.generate spotify.conn.get("shows/#{show_id}?market=US").body

The only other issue is the language code that Spotify returns is different than the one the RSS spec uses. I'm not sure of the best way to translate between the two.

Do you have some examples of the language code returned by Spotify?

According to their API:

  "languages" : [ "sv" ],

Ah, I didn't bother checking against the actual API with other content. It appears they use compatible codes (en-US for English).

Just pushed that out, but it'll take a little while to show up in the feeds with all the caching I have in place. Give it a day or two :)