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

Playlist has a large ammount of repeated videos #87

Closed TheFip closed 3 years ago

TheFip commented 3 years ago

Hello! I have run in to an error where videos get added multiple times in the same playlist.

For some reason this only happened in one of the four playlist I have created. I have tried to recreate this playlist multiple times, but sadly this error eventually always happened again.

So, I assume it has something to do with the list of channels for this playlist?

I really don’t know, is there anyway to solve this problem?

Fabian42 commented 3 years ago

Is there something in the debug sheet? If the script adds one video to the playlist and then fails on a later video, then it doesn't update the timestamp and adds the same video again on the next run.

TheFip commented 3 years ago

Thank you for the fast reply! It does have something on the bug sheet for that row actually, it reads as follows:

Couldn't` update playlist with video (zJJa-p9U0oc), ERROR: Message: [API call to youtube.playlistItems.insert failed with error: Video not found.] Details: {"message":"Video not found.","code":404,"errors":[{"message":"Video not found.","reason":"videoNotFound","domain":"youtube.playlistItem"}]}

I guess its trying to insert a private video on the playlist, and causing an error cause of that? If so, how could i solve this issue?

victorjzsun commented 3 years ago

Similar issue with private videos here: https://github.com/Elijas/auto-youtube-subscription-playlist-2/issues/74. I'll add a workaround to ignore these errors

victorjzsun commented 3 years ago

@TheFip I made the change to the script, either use http://bit.ly/subscriptionPlaylistsCopy to create a new copy of the sheet or copy the script from GitHub and paste it into your sheet's code editor. Let me know if the issue is fixed, thanks!

Fabian42 commented 3 years ago

So is #74 fixed then?

On Mon, 25 Jan 2021 at 00:46, Victor Sun notifications@github.com wrote:

@TheFip https://github.com/TheFip I made the change to the spreadsheet's script, either use http://bit.ly/subscriptionPlaylistsCopy to create a new copy of the sheet or copy the script from GitHub https://raw.githubusercontent.com/Elijas/auto-youtube-subscription-playlist-2/master/sheetScript.gs and paste it into your sheet's code editor. Let me know if the issue is fixed, thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Elijas/auto-youtube-subscription-playlist-2/issues/87#issuecomment-766462133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACP66YRKI3OWCATD2N5C4JLS3SWOPANCNFSM4WQYZCZA .

TheFip commented 3 years ago

The new script worked as far as i can tell! Thank you so much!