From 9bd2169b499c3c11c65a1c8f3b8505acfccdefb8 Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Sat, 22 Feb 2020 13:08:26 +0000 Subject: [PATCH] Update recommendations doc, fixes #290 --- .gitignore | 4 +++- spotipy/client.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 137335b9..144a8173 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ pip-delete-this-directory.txt htmlcov/ .tox/ .coverage -.cache nosetests.xml coverage.xml @@ -52,5 +51,8 @@ coverage.xml # Sphinx documentation docs/_build/ +# Spotipy tokens +.cache + .* archive \ No newline at end of file diff --git a/spotipy/client.py b/spotipy/client.py index 27d55cc0..4b3a8986 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1031,12 +1031,12 @@ def recommendations( **kwargs ): """ Get a list of recommended tracks for one to five seeds. + (at least one of `seed_artists`, `seed_tracks` and `seed_genres` + are needed) Parameters: - seed_artists - a list of artist IDs, URIs or URLs - - seed_tracks - a list of track IDs, URIs or URLs - - seed_genres - a list of genre names. Available genres for recommendations can be found by calling recommendation_genre_seeds