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

Fix last.fm API key #48

Open
enrique-ramirez opened this issue Dec 10, 2012 · 8 comments
Open

Fix last.fm API key #48

enrique-ramirez opened this issue Dec 10, 2012 · 8 comments

Comments

@enrique-ramirez
Copy link

After downloading the latest version of sonora (to get rid of the expiry message), last.fm integration has stopped working. Sonora's preferences tab showed I was connected, but the songs would not scrobble.

After clicking on Sign out and then Sign in (which, by the way, is still a Sign Out button) I get taken to last.fm/s homepage and greeted with this warning:

Screen Shot 2012-12-10 at 1.57.20 PM.png

(Check the URL!)

I miss my scrobbling. :( Please bring it back!

@macchina50
Copy link

Hi,

The API keys are not included in the code ("LASTFM_API_KEY " in the url is a placeholder). I think they were removed because the app is open source and last.fm recommends not distributing keys. (However, according to this this thread, I think it would be permissible to include keys in the Sonora code.)

Anyway, if you want to scrobble with Sonora, here is what you need to do:

  1. Register an API account with last.fm
  2. Fill out your account info however you wish, but be sure to specify "sonora://lastfmauth/" as the callback url
  3. Download the source code, insert your API/Secret keys in SNRConstants.m and remove the warning
  4. Compile the source in Xcode according to the instructions in the readme

Hopefully, that makes sense. This took me forever to figure out myself (especially step 2), mainly because I'd never touched a line of code before and therefore had no clue what I was doing. However, my Sonora scrobbler now works, and it's actually pretty easy to set up once you have the above info.

Cheers!

@enrique-ramirez
Copy link
Author

Hi macchina,

Thanks for the info! Will do this for the time being. :) It does make sense that they don't want to spread the API key... will await for a response from Indragie.

@indragiek
Copy link
Member

Hey guys,

Thanks for pointing this out. I'll have to think a bit about whether publicizing the API key is the best option, but I'll get back to this soon!

@metbril
Copy link

metbril commented Mar 2, 2013

Wouldn't it be an option to only include the API key AND secret in the comiled version that is made available through getsonora.com?

@florianeckerstorfer
Copy link

@indragiek Or make it possible to enter my personal API key and secret in the preferences window?

@wwqrd
Copy link

wwqrd commented May 22, 2013

+1 florianeckerstorfer's idea

@yuvadm
Copy link

yuvadm commented Oct 6, 2014

+1 @florianeckerstorfer

1 similar comment
@Ardakilic
Copy link

+1 @florianeckerstorfer

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

8 participants