mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
Remove spaces around keyword operator
remove space around operator '=' for keywords.
This commit is contained in:
1 parent
0eeeeb4a50
commit
0b0942423c
2 files changed
+2
-2
No files matched your search
@@ -19,7 +19,7 @@ def get_artist(name):
|
||||
|
||||
def show_recommendations_for_artist(artist):
|
||||
albums = []
|
||||
results = sp.recommendations(seed_artists = [artist['id']])
|
||||
results = sp.recommendations(seed_artists=[artist['id']])
|
||||
for track in results['tracks']:
|
||||
print track['name'], '-', track['artists'][0]['name']
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ def find_songs_that_start_with_word(word):
|
||||
|
||||
out = []
|
||||
while offset < max_offset and len(out) < max_titles:
|
||||
results = sp.search(q=word, type = 'track', limit=50, offset = offset)
|
||||
results = sp.search(q=word, type='track', limit=50, offset=offset)
|
||||
if len(results['tracks']['items']) == 0:
|
||||
break
|
||||
|
||||
|
||||
Reference in new issue
Block a user