summaryrefslogtreecommitdiff
path: root/searx/engines/spotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/spotify.py')
-rw-r--r--searx/engines/spotify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/spotify.py b/searx/engines/spotify.py
index 491a7058e..3b86328b7 100644
--- a/searx/engines/spotify.py
+++ b/searx/engines/spotify.py
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-"""
- Spotify (Music)
+"""Spotify (Music)
+
"""
from json import loads
@@ -60,13 +60,13 @@ def response(resp):
for result in search_res.get('tracks', {}).get('items', {}):
if result['type'] == 'track':
title = result['name']
- url = result['external_urls']['spotify']
+ link = result['external_urls']['spotify']
content = '{} - {} - {}'.format(result['artists'][0]['name'], result['album']['name'], result['name'])
# append result
results.append(
{
- 'url': url,
+ 'url': link,
'title': title,
'iframe_src': "https://embed.spotify.com/?uri=spotify:track:" + result['id'],
'content': content,