Scrobbling fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user