Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track.getCorrection returns exceptions or nil #29

Closed
masterkain opened this issue Apr 5, 2012 · 1 comment
Closed

track.getCorrection returns exceptions or nil #29

masterkain opened this issue Apr 5, 2012 · 1 comment

Comments

@masterkain
Copy link
Contributor

69946f0

Lastfm.new(Settings.services.lastfm.api_key, Settings.services.lastfm.secret).track.get_correction('White Stripes', 'One More Cup of Coffee', 'wainekerr')

This uses the same data as in the spec, however it returns nil for me.

If instead we use a mispelt artist or track title, it raises:

Lastfm::ApiError: Supplied artist does not exist
  from /Users/kain/.rvm/gems/ruby-1.9.3-p125/bundler/gems/ruby-lastfm-2242de096b1e/lib/lastfm.rb:96:in `request'
  from /Users/kain/.rvm/gems/ruby-1.9.3-p125/bundler/gems/ruby-lastfm-2242de096b1e/lib/lastfm/method_category/base.rb:54:in `request'
  from /Users/kain/.rvm/gems/ruby-1.9.3-p125/bundler/gems/ruby-lastfm-2242de096b1e/lib/lastfm/method_category/base.rb:29:in `block in __define_method'
@masterkain
Copy link
Contributor Author

As an added note I don't see the username as required or optional param in here: http://www.lastfm.it/api/show/track.getCorrection

@youpy youpy closed this as completed in 18b110b Apr 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants