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

error adding videos #118

Open kurokirasama opened 1 year ago

kurokirasama commented 1 year ago

Hello,

I've got this error in the debug sheet:

Channel UCRM_wkKqfwVB9OgayzdMEQQ does not have any uploads in UURM_wkKqfwVB9OgayzdMEQQ, Failed with error Message: [API call to youtube.playlistItems.list failed with error: The playlist identified with the request's <code>playlistId</code> parameter cannot be found.] Details: {"message":"The playlist identified with the request's <code>playlistId</code> parameter cannot be found.","code":404,"errors":[{"domain":"youtube.playlistItem","reason":"playlistNotFound","message":"The playlist identified with the request's <code>playlistId</code> parameter cannot be found.","locationType":"parameter","location":"playlistId"}]}

I already unsubscribed from that channel but the error persists

victorjzsun commented 1 year ago

Are you sure you don't have UCRM_wkKqfwVB9OgayzdMEQQ explicitly as one of the channels to check in the sheet?

Fabian42 commented 1 year ago

Empty channels cause the script to fail BTW, it doesn't just skip them. So you cannot use this script to get notified if someone starts uploading videos.

victorjzsun commented 1 year ago

Really? I just ran it on my sheet using the above channel ID and it just logs it, no error. Are you using the up to date script? On line 343, you should have a Logger.log call but not an addError call, as in the current script. Are you sure the error is because of this?

Fabian42 commented 1 year ago

Oh, following the project still doesn't notify me about commits. Tried it with the latest version now and it does indeed work, but the output looks as if it didn't:

Channel UCAqzgFGOss0mFN0OUKkdqMw does not have any uploads in UUAqzgFGOss0mFN0OUKkdqMw, Failed with error Message: [API call to youtube.playlistItems.list failed with error: The playlist identified with the request's playlistId parameter cannot be found.] Details: {"code":404,"message":"The playlist identified with the request's playlistId parameter cannot be found.","errors":[{"message":"The playlist identified with the request's playlistId parameter cannot be found.","locationType":"parameter","reason":"playlistNotFound","location":"playlistId","domain":"youtube.playlistItem"}]}

"Failed", "error", "error", "errors", …

victorjzsun commented 1 year ago

Yeah, I gotta remember to make releases. I'll change the log text to be less alarming...

Looking back at the history, this change was made two years ago with multiple releases since then. Did you not get any notifs about anything? Just curious what it does remind you about...