[PR #914] [MERGED] updated functionality of playlist_add_items() #1078

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/914
Author: @oliveraw
Created: 12/5/2022
Status: Merged
Merged: 1/19/2025
Merged by: @stephanebruckert

Base: v3Head: oliveraw-spotipy


📝 Commits (5)

  • f82c283 updated functionality of playlist_add_items() to accept only uris and urls (ids should not be allowed since 'track' or 'episode' cannot be inferred purely from the id)
  • ddac78e added a check to raise runtime error if any items in playlist_add_items() are not URIs or URLs
  • 3d83f3f modified change log
  • adfd50a Merge branch 'v3' of github.com:spotipy-dev/spotipy into oliveraw-spotipy
  • 87c245c CL format fix

📊 Changes

3 files changed (+28 additions, -4 deletions)

View changed files

📝 CHANGELOG.md (+5 -1)
📝 spotipy/client.py (+14 -2)
📝 tests/integration/user_endpoints/test.py (+9 -1)

📄 Description

playlist_add_items() should not be able to accept pure IDs, since the type 'track' or 'episode' cannot be inferred. We are proposing a change where playlist_add_items is modified to only accept URIs and URLs


🔄 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/914 **Author:** [@oliveraw](https://github.com/oliveraw) **Created:** 12/5/2022 **Status:** ✅ Merged **Merged:** 1/19/2025 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `v3` ← **Head:** `oliveraw-spotipy` --- ### 📝 Commits (5) - [`f82c283`](https://github.com/spotipy-dev/spotipy/commit/f82c283c90beab6924eb0bc70e317beae17e4ad4) updated functionality of playlist_add_items() to accept only uris and urls (ids should not be allowed since 'track' or 'episode' cannot be inferred purely from the id) - [`ddac78e`](https://github.com/spotipy-dev/spotipy/commit/ddac78e506c5e147dbbfed13e9527d629249f39b) added a check to raise runtime error if any items in playlist_add_items() are not URIs or URLs - [`3d83f3f`](https://github.com/spotipy-dev/spotipy/commit/3d83f3f70c56a2c30c12c827a9c6701d1005fb51) modified change log - [`adfd50a`](https://github.com/spotipy-dev/spotipy/commit/adfd50a7744682999538e2620dd43108bc5bf1bf) Merge branch 'v3' of github.com:spotipy-dev/spotipy into oliveraw-spotipy - [`87c245c`](https://github.com/spotipy-dev/spotipy/commit/87c245c4df81c2614fe57295e46bfc8b7fc24dbc) CL format fix ### 📊 Changes **3 files changed** (+28 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -1) 📝 `spotipy/client.py` (+14 -2) 📝 `tests/integration/user_endpoints/test.py` (+9 -1) </details> ### 📄 Description playlist_add_items() should not be able to accept pure IDs, since the type 'track' or 'episode' cannot be inferred. We are proposing a change where playlist_add_items is modified to only accept URIs and URLs --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:31 +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#1078
No description provided.