Browse files

Scrobble to last.fm

  • Loading branch information...
1 parent 534a114 commit 44493c0beb5e21181c68872841d8af6c4d161984 @richardjohansson richardjohansson committed Oct 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/commands/spotify_command.rb
View
3 lib/commands/spotify_command.rb
@@ -152,6 +152,9 @@ def self.hallon_session!
if appkey = IO.read('./spotify_appkey.key') rescue nil
session = Hallon::Session.initialize(appkey)
session.login(Flower::Config.spotify_username, Flower::Config.spotify_password)
+ scrobbler = Hallon::Scrobbler.new(:lastfm)
+ scrobbler.credentials = [Flower::Config.lastfm_username, Flower::Config.lastfm_password]
+ scrobbler.enabled = true
else
puts("Warning: No spotify_appkey.key found. Get yours here: https://developer.spotify.com/technologies/libspotify/#application-keys")
end

0 comments on commit 44493c0

Please sign in to comment.