Permalink
Browse files

testing

  • Loading branch information...
1 parent d323019 commit 40f929b592310a729d679246a437d7dc01cb4a6e @ianloic ianloic committed Jan 29, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 mixture/playback/views.py
View
@@ -11,17 +11,11 @@ def playback(request):
artist = request.REQUEST.get('artist', '')
track = request.REQUEST.get('track', '')
- print 'artist=%r track=%r' % (artist, track)
-
- q = {
- 'types':'track',
- 'query': u"%s %s" %(artist.decode('latin-1'), track.decode('latin-1'))
- }
- print 'Q=%r' % q
+ print 'artist=%r track=%r'.encode() % (artist, track)
response = rdio.call('search', {
'types':'track',
- 'query': u"%s %s" %(artist.decode('latin-1'), track.decode('latin-1'))
+ 'query': u"%s %s" %(artist, track)
})
seevlArtist = SeevlEntitySearch({'prefLabel' : artist}, seevl_app_id = settings.SEEVL_APP_ID, seevl_app_key = settings.SEEVL_APP_KEY).run()[0]

0 comments on commit 40f929b

Please sign in to comment.