Comments (6)
just tried it. it appears spotify is still ignoring the position param sent by playlist_remove_specific_occurrences_of_items()
from spotipy.
Here is an effort to clearly summarize the impact of this api-bug
Prior to this Spotify Change
If you have Multiple Copies of the Same Track in a playlist and you selected ONE of them to be removed, just the selected track would be removed.
After this Spotify Change
If you have Multiple Copies of the Same Track in a playlist and you selected ONE of them to be removed, now ALL copies of the selected track will be removed from the playlist.
Example
If you have two copies of the same track in a playlist you can no longer remove just one of them, both copies of the track will be removed. It is no longer possible to remove duplicates from a playlist using the web api. All you can do is remove all copies of a track from a playlist.
Spotify Web API Documentation
I sure hope the Spotify Remove Playlist Items doc page gets updated to make this clear.
Spotipy Code and Documentation
Once it becomes clear spotify is not going to fix this issue, it seems like the spotipy playlist_remove_specific_occurrences_of_items() api docs and code will need to be updated so that the items param to longer requires a position for each track id.
from spotipy.
Hi, according to this comment, reordering works again (using the same endpoint), so maybe deleting specific occurrences works too. I'll try that when I get around to it.
#1099 (comment)
from spotipy.
I think they are trying to make sure that the documentation matches the API. They recently removed an argument that isn't in the documentation for quite a while. Maybe it's the same in this case here. #1107
from spotipy.
One of the comments in your community post seems to mention UIDs that would identify different items in a playlist. Let's hope this is implemented in the API. Would be a good replacement.
I've also contacted Spotify support directly, maybe a moderator will take a look and give us an answer.
from spotipy.
thanks for contacting the moderator. maybe the moderator will contact a spotify employee....
from spotipy.
Related Issues (20)
- Improve 'util.py' with function docstrings HOT 4
- the playlist function stopped working between yesterday and today HOT 5
- API Reference Refers to Deprecated Methods HOT 2
- Update Directions In TUTORIAL.md
- Documentation for version 2.23.0 not available HOT 8
- Current 2.23.0 install from pip doesn't include latest code HOT 4
- Update Directions and Content of CONTRIBUTING.md HOT 1
- Backend terminal shows: " Enter the URL you were redirected to: " HOT 5
- Adding a custom date range for users top tracks and top artist HOT 1
- Account Creation Timestamp field HOT 2
- Any way to play a playlist? Without premium if possible. HOT 1
- Podcast transcript HOT 1
- How spotipy have to be setted for deploying? HOT 1
- How do I start playback on the command line/headless? HOT 6
- Invalidate cache if the credentials change (or the credentials become invalid) HOT 3
- An error occurred: can only concatenate tuple (not "str") to tuple when using Spotipy functions HOT 7
- Move linting/code style checks to a separate test HOT 2
- Playlist longer than 100 items fails to iterate with sample code HOT 4
- Fails to query audio features for LOCAL track files that aren't available HOT 6
- Running .artist() & .album_tracks() methods are stuck running & won't execute HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotipy.