forked from Ponysearch/Ponysearch
[fix] unicode response in deezer and spotify
This commit is contained in:
parent
75aa46a6b3
commit
e12a137a2f
2 changed files with 2 additions and 2 deletions
|
@ -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'])
|
||||||
|
|
|
@ -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'])
|
||||||
|
|
Loading…
Reference in a new issue