[GH-ISSUE #434] Handling of batched processing which may contain invalid video ids. #325

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

Originally created by @2meito on GitHub (Sep 22, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/434

Hello, I'm currently using this library with browser authentication to create a program that can read a text file containing video ids and add them to a playlist.

However, some of those video ids are from videos are either private or no longer exists, so when I try to run:

response = ytmusic.add_playlist_items(playlist_id, video_ids)

I usually get a response like this:

Server returned HTTP 400: Bad Request.
Precondition check failed.

Currently I'm trying to see how far I can go while sending individual request, but I was wondering if there was a better way to handle batched process for a problem like this.

Originally created by @2meito on GitHub (Sep 22, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/434 Hello, I'm currently using this library with browser authentication to create a program that can read a text file containing video ids and add them to a playlist. However, some of those video ids are from videos are either private or no longer exists, so when I try to run: ```python response = ytmusic.add_playlist_items(playlist_id, video_ids) ``` I usually get a response like this: ```bash Server returned HTTP 400: Bad Request. Precondition check failed. ``` Currently I'm trying to see how far I can go while sending individual request, but I was wondering if there was a better way to handle batched process for a problem like this.
kerem closed this issue 2026-02-27 23:00:12 +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#325
No description provided.