[fix] unicode response in deezer and spotify

This commit is contained in:
Adam Tauber 2016-12-10 00:30:34 +01:00
parent 75aa46a6b3
commit e12a137a2f
2 changed files with 2 additions and 2 deletions

View file

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

View file

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