examples/love.rb in itunes-observer-0.0.3 vs examples/love.rb in itunes-observer-0.1.1
- old
+ new
@@ -21,17 +21,17 @@
config['api_secret'])
unless session = config['session']
token = lastfm.auth.get_token
auth(config['api_key'], token)
- session = lastfm.auth.get_session(token)
+ session = lastfm.auth.get_session(token)['key']
Pit.set('last.fm', :data => {
"session" => session
}.merge(config))
puts "Session key was generated."
- return
+ exit
end
lastfm.session = session
ITunesObserver.new {|result|