4 ms·
Ask HN: Itunes API help
Hello,
we're working with iTunes API using this gem
https://github.com/dewski/itunes
And here's the code we're using:
search = "#{self.album.artist_name} #{self.track_name}"
puts "Searching for '#{search}'"
itunes = ITunes::Client.new
response = itunes.music(search,:entity => 'song', :limit => 1)
sometimes it happens that we can't find a player even if the song it's present in iTunes, for example
Nosaj Thing - Eclipse / Blue (feat. Kazu Makino)
doing a search in iTunes from my iPhone for " Nosaj Thing Eclipse/Blue " (no space between the / ) it gives me the right player, using the API it doesn't work.
- gus_massa 14y agoI think that a better place to post this question is stackoverflow. They have an "itunes" and "itunes-sdk" tag. I don't know which is better for this. http://stackoverflow.com/questions/tagged/itunes http://stackoverflow.com/questions/tagged/itunes http://stackoverflow.com/questions/tagged/itunes-sdk http://stackoverflow.com/questions/tagged/itunes-sdk
- needleme 14y agoYea, sorry you're right, thanks