Elijas / auto-youtube-subscription-playlist-2

Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
MIT License
246 stars 54 forks source link

Videos being repeatedly added to playlist #115

Closed sk33ny closed 1 year ago

sk33ny commented 2 years ago

This just started yesterday, the same 5 videos get added over and over to my playlist every time the script runs.

I'm getting the following error: Couldn't update playlist with video (htJUqjVU5nc), ERROR: Message: [API call to youtube.playlistItems.insert failed with error: Precondition check failed.] Details: {"message":"Precondition check failed.","code":400,"errors":[{"reason":"failedPrecondition","message":"Precondition check failed.","domain":"global"}]}

victorjzsun commented 2 years ago

Apparently the video is private but instead of getting a 404, we get a different error. I've changed the script to catch similar errors by trying to find the offending video regardless of response code, so should be fixed now. Please update your script and let me know if the issue persists.

sk33ny commented 2 years ago

I updated the script and everything is working again. Thank you for the quick fix!

victorjzsun commented 1 year ago

Closing this now as it's been fixed