Closed banzerschreck closed 3 years ago
I'm also getting the same error for the past day, I'm using the Watch Later (WL) playlist too.
ERROR_1: API call to youtube.playlistItems.insert failed with error: The API does not support the ability to insert videos into the specified playlist.
I was using an older version of the code and thought that was the problem but even after updating to the latest version I still receive the same error as OP.
Couldn't update playlist with video (<REDACTED>), ERROR: Message: [API call to youtube.playlistItems.insert failed with error: The API does not support the ability to insert videos into the specified playlist.] Details: {"message":"The API does not support the ability to insert videos into the specified playlist.","errors":[{"location":"playlistId","message":"The API does not support the ability to insert videos into the specified playlist.","domain":"youtube.playlistItem","locationType":"parameter","reason":"playlistOperationUnsupported"}],"code":400}
The problem appears to be with the Watch Later playlist, in fact I made a new playlist (private), changed it into the sheet and the script runs fine, I guess google made some changes regarding the ability to add videos to the WL playlist.
Edit: It appears from this stackoverflow answer that the playlistItems.insert and delete methods are fully deprecated for the WL playlist. Too bad as the WL list was my default playlist as it has the remove watched feature already available without having to use JS code to remove videos, plus it seems that with a different playlist from the WL one I always hit the API quota but this might be a problem on my side.
Yeah, looks like it's been deprecated. Nothing we can do about it.
Updated error message to be clearer: https://github.com/Elijas/auto-youtube-subscription-playlist-2/commit/d74e6939e020c616819dd816697846be2eee2d79
I started getting failure notifications for the script the other day and it seems that every time the script runs Youtube spits back an error code 400 for every video. For context, the only way I use this script is to add all of my subscriptions, about 20 videos per day, to my watch later playlist.
An example error message:
I last ran the script just a few minutes ago using the latest version of sheetScript.gs and unfortunately hit the API quota for today :(
Is this possibly caused by a change to the API? Is it only the watch later playlist that has broken?
Thanks for your help!