[PR #124] [MERGED] Recommendations seeds parameters formatted as a comma seperated list #783

Closed
opened 2026-02-28 00:01:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/124
Author: @steinitzu
Created: 10/24/2016
Status: Merged
Merged: 10/24/2016
Merged by: @plamere

Base: masterHead: fix-recommendations-params


📝 Commits (1)

  • 1304ac3 Recommendations seeds parameters formatted as a comma seperated list to

📊 Changes

1 file changed (+14 additions, -12 deletions)

View changed files

📝 spotipy/client.py (+14 -12)

📄 Description

Hello Paul
Thanks for making Spotipy :)

I noticed when using multiple seed artists of different genres to fetch recommendations, that the resulting tracks were all sort of samey.
Turns out that Spotify API does not support multiple URL parameters in the form of "seed_artists=xxxx&seed_artists=yyyy&...", this results in Spotify API ignoring everything but the seed.

I wrapped the 'seed_x' parameters in an ','.join() call to fix the problem.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/124 **Author:** [@steinitzu](https://github.com/steinitzu) **Created:** 10/24/2016 **Status:** ✅ Merged **Merged:** 10/24/2016 **Merged by:** [@plamere](https://github.com/plamere) **Base:** `master` ← **Head:** `fix-recommendations-params` --- ### 📝 Commits (1) - [`1304ac3`](https://github.com/spotipy-dev/spotipy/commit/1304ac33c06eb401f36fd25bda449f0f881b7bd3) Recommendations seeds parameters formatted as a comma seperated list to ### 📊 Changes **1 file changed** (+14 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `spotipy/client.py` (+14 -12) </details> ### 📄 Description Hello Paul Thanks for making Spotipy :) I noticed when using multiple seed artists of different genres to fetch recommendations, that the resulting tracks were all sort of samey. Turns out that Spotify API does not support multiple URL parameters in the form of "seed_artists=xxxx&seed_artists=yyyy&...", this results in Spotify API ignoring everything but the seed. I wrapped the 'seed_x' parameters in an ','.join() call to fix the problem. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:01:42 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#783
No description provided.