Scrobbling fixes

This commit is contained in:
magnolia-fan
2011-06-23 04:59:11 +04:00
parent 672276d37d
commit a8ace58b20
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -82,9 +82,9 @@ class LastFmController < ApplicationController
lastfm = Lastfm.new(@@api_key, @@secret)
lastfm.session = user.lastfm_key
r = lastfm.track.scrobble(params[:artist], params[:track])
r = lastfm.track.scrobble(params[:artist], params[:track], nil, Time.now.utc.to_i)
render :json => {:status => r ? 'success' : 'failed'}
render :json => {:status => r ? 'success' : 'failed', time: Time.now.utc}
return
end