diff --git a/examples/artist_recommendations.py b/examples/artist_recommendations.py index 6efbc1e..142cf49 100644 --- a/examples/artist_recommendations.py +++ b/examples/artist_recommendations.py @@ -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'] diff --git a/examples/title_chain.py b/examples/title_chain.py index 67a55c0..ac74fe5 100644 --- a/examples/title_chain.py +++ b/examples/title_chain.py @@ -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