1
0
Fork 0

Scrobble fix

This commit is contained in:
Gregory Eremin 2011-10-12 13:46:23 +04:00
parent 99fc62cde9
commit 83047f5bf0
1 changed files with 3 additions and 3 deletions

View File

@ -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