logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: e12a137a2fd64bb6d3b073ce1a117cc8839717a7
parent: 75aa46a6b3942729089d607b7ea51e7b397c9227
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat, 10 Dec 2016 00:30:34 +0100

[fix] unicode response in deezer and spotify

Diffstat:

searx/engines/deezer.py | 2+-
searx/engines/spotify.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/engines/deezer.py b/searx/engines/deezer.py @@ -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']) diff --git a/searx/engines/spotify.py b/searx/engines/spotify.py @@ -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'])