mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Remove spaces around keyword operator
remove space around operator '=' for keywords.
This commit is contained in:
parent
0eeeeb4a50
commit
0b0942423c
@ -19,7 +19,7 @@ def get_artist(name):
|
|||||||
|
|
||||||
def show_recommendations_for_artist(artist):
|
def show_recommendations_for_artist(artist):
|
||||||
albums = []
|
albums = []
|
||||||
results = sp.recommendations(seed_artists = [artist['id']])
|
results = sp.recommendations(seed_artists=[artist['id']])
|
||||||
for track in results['tracks']:
|
for track in results['tracks']:
|
||||||
print track['name'], '-', track['artists'][0]['name']
|
print track['name'], '-', track['artists'][0]['name']
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ def find_songs_that_start_with_word(word):
|
|||||||
|
|
||||||
out = []
|
out = []
|
||||||
while offset < max_offset and len(out) < max_titles:
|
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:
|
if len(results['tracks']['items']) == 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user