Comments (2)
This is not an inconsistency, it's how the API works. You can have duplicate videos in a playlist, so a different ID (setVideoId
) is used for removing/moving playlist items. Check this code snippet from remove_playlist_items:
ytmusicapi/ytmusicapi/mixins/playlists.py
Lines 259 to 264 in 7c18d8d
The same goes for moving playlist items. The moveItem is a tuple here, but the same two IDs (videoId and setVideoId) are used:
ytmusicapi/ytmusicapi/mixins/playlists.py
Lines 182 to 187 in 7c18d8d
Whereas for adding playlist items, they're always added to the end of the playlist, so there's no need to specify a position.
from ytmusicapi.
Ok, seems logical, thx
from ytmusicapi.
Related Issues (20)
- get_artist_albums: add singles filter and sort HOT 1
- Requesting getting information about the counterpart
- Ability to add playlist item to start of playlist HOT 6
- get_album tracks have the same artists as the album HOT 5
- When searching without filter, no ids appear HOT 1
- get_artist_album is not working on some artists HOT 1
- 'setvideoid' error on .get_history() HOT 6
- `KeyError: 'contents'` when searching for a song HOT 5
- Can't remove tracks from Liked Music playlist HOT 5
- feedbackTokens add and remove are swapped HOT 3
- get_liked_songs works incorrectly or maybe yt music api doesnt return all data HOT 6
- Get the year of each song
- get background music metainfo HOT 4
- Audiobooks not idientified as albums HOT 4
- get_artist_albums/singles: support pagination
- parsing returned playlist fails when using browser header based authentication HOT 1
- Setting a custom timeout does not work... HOT 6
- pyinstaller support HOT 2
- Top Result doesn't have an ID? HOT 2
- Get album information from `get_song` method HOT 1
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 ytmusicapi.