mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #209] Issue adding to Playlist #163
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KaneSama2k3 on GitHub (Jul 1, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/209
I'm trying to create a series of playlists from my complete library and I'm getting the following error when trying to upload to a playlist
The fetch requests work fine
@sigma67 commented on GitHub (Jul 1, 2021):
Difficult to say what's going on here without function parameters. I assume there is something wrong with the playlistId or videoIds you used.
@KaneSama2k3 commented on GitHub (Jul 1, 2021):
Ah; understood.
I have a program that fetches all the videoIds in my account, saves them to a file (because I was trying to deal with crashes and didn't want to keep fetching every time there was a minor error) and then runs the output file against this:
So the playlist Id is fetched from the creation and the videoIds are fetched from my library
The crash occurs on the add_playlist_items step. I usually use 500 as the chunk size for my lists, but I tried 1 and it still crashes straight away
@sigma67 commented on GitHub (Jul 1, 2021):
Did you try printing the playlistId, opening the playlist in a browser, and adding videos manually?
@KaneSama2k3 commented on GitHub (Jul 1, 2021):
OK; so I'm officially really p***ed at myself. It is indeed a Video Id that no longer exists. My fetch routine gets all the songs in my playlists, library and uploaded, dedupes them and saves. I had turned off the the playlist fetch, but not the import so it was looking at old data.
I only realised this by stepping through the ids one at a time rather than batching them.
Sorry for wasting your time, and thanks for the incredibly useful tool to make YouTube music usable
@sigma67 commented on GitHub (Jul 2, 2021):
No worries! Always double check your data :)