Skip to content

Commit

Permalink
this is fucking tiring
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobeat committed Jul 25, 2012
1 parent 637a692 commit 473c9dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.coffee
Expand Up @@ -20,6 +20,8 @@ app.get '/recommend/:user', (req, res) ->

limit = req.session.totalPages or 999
page = Math.floor(Math.random()*limit)

console.log "params"

params =
method : 'library.getartists'
Expand All @@ -28,6 +30,8 @@ app.get '/recommend/:user', (req, res) ->
page : page
limit : 1
format : 'json'

console.log "requesting artists for #{params.user}"

request "http://ws.audioscrobbler.com/2.0/?#{qs.stringify params}", (err, response, body) ->
try
Expand Down

0 comments on commit 473c9dd

Please sign in to comment.