[GH-ISSUE #426] Need help debugging ' STATUS_FAILED' on add_playlist_items() #316

Closed
opened 2026-02-27 23:00:09 +03:00 by kerem · 0 comments
Owner

Originally created by @TychoZaal on GitHub (Aug 22, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/426

Hi, when running my self-made Python script to convert Spotify playlists to YTM nothing happens. Upon debugging I found out that I get STATUS_FAILED as a response. The exact same program used to work up until a few weeks ago. The playlistId seems good, and the list of videoIds is also filled with valid Ids. Is there any way to figure out why this process has failed, as I would love to resolve this!

I provide the method with a playlistId (retrieved from user library), a list of strings of song titles-> songs, and the playlistName

def update_youtube_music_playlist(playlistId, songs, playlistName):

ytmusicTracks = []
progress = 0
songAmount = len(songs)

for song in songs:
    videoId = ytmusic.search(query=song, filter="songs", limit=1)[0]["videoId"]
    ytmusicTracks.append(videoId)
    progress = progress + 1
    print("Updating", playlist, ":", progress, "/", songAmount, "\r", end="")

response = ytmusic.add_playlist_items(playlistId=playlistId, videoIds=ytmusicTracks)
print("Updated the " + playlist + " playlist")`

The response Dictionary contains a status variable with STATUS_FAILED as a value

Originally created by @TychoZaal on GitHub (Aug 22, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/426 Hi, when running my self-made Python script to convert Spotify playlists to YTM nothing happens. Upon debugging I found out that I get **STATUS_FAILED** as a response. The exact same program used to work up until a few weeks ago. The playlistId seems good, and the list of videoIds is also filled with valid Ids. Is there any way to figure out why this process has failed, as I would love to resolve this! I provide the method with a **playlistId** (retrieved from user library), a list of strings of song titles-> **songs**, and the **playlistName** _def update_youtube_music_playlist(playlistId, songs, playlistName):_ ytmusicTracks = [] progress = 0 songAmount = len(songs) for song in songs: videoId = ytmusic.search(query=song, filter="songs", limit=1)[0]["videoId"] ytmusicTracks.append(videoId) progress = progress + 1 print("Updating", playlist, ":", progress, "/", songAmount, "\r", end="") response = ytmusic.add_playlist_items(playlistId=playlistId, videoIds=ytmusicTracks) print("Updated the " + playlist + " playlist")` The _response_ Dictionary contains a status variable with **STATUS_FAILED** as a value
kerem closed this issue 2026-02-27 23:00:09 +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/ytmusicapi#316
No description provided.