[fix] unicode response in deezer and spotify

pull/1/head
Adam Tauber 8 years ago
parent 75aa46a6b3
commit e12a137a2f

@ -51,7 +51,7 @@ def response(resp):
if url.startswith('http://'):
url = 'https' + url[4:]
content = '{} - {} - {}'.format(
content = u'{} - {} - {}'.format(
result['artist']['name'],
result['album']['title'],
result['title'])

@ -46,7 +46,7 @@ def response(resp):
if result['type'] == 'track':
title = result['name']
url = result['external_urls']['spotify']
content = '{} - {} - {}'.format(
content = u'{} - {} - {}'.format(
result['artists'][0]['name'],
result['album']['name'],
result['name'])

Loading…
Cancel
Save