summaryrefslogtreecommitdiff
path: root/searx/engines/spotify.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-11 07:45:08 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-11 14:55:38 +0100
commit8205f170ff983e5240d32dc17d7fdb526ebe5fe7 (patch)
tree536acda827bcdd1a6668714855e6f6c3ba6b68d4 /searx/engines/spotify.py
parent707d6270c80426b54aeaa0ac0acd80ded45df533 (diff)
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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,