mirror of https://github.com/searx/searx
[fix] unicode response in deezer and spotify
This commit is contained in:
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…
Reference in New Issue