Scrobble fix
This commit is contained in:
parent
99fc62cde9
commit
83047f5bf0
|
@ -88,13 +88,13 @@ class LastFmController < ApplicationController
|
|||
:timestamp => Time.now.utc.to_i,
|
||||
:artist => params[:artist],
|
||||
:album => params[:album],
|
||||
:trackNumber => params[:position],
|
||||
:trackNumber => params[:position].to_i,
|
||||
# :mbid => params[:mbid],
|
||||
:duration => params[:length],
|
||||
:duration => params[:length].to_i,
|
||||
:sk => user.lastfm_key # Auth session key
|
||||
)
|
||||
|
||||
render :json => { :status => r['error'].nil? ? 'success' : 'failed' }
|
||||
render :json => { :status => r['error'].nil? ? 'success' : r }
|
||||
return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue