[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://'):
url = 'https' + url[4:]
content = '{} - {} - {}'.format(
content = u'{} - {} - {}'.format(
result['artist']['name'],
result['album']['title'],
result['title'])

View File

@ -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'])