Elijas / auto-youtube-subscription-playlist-2

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

Script successfully finished, but no video's added to playlist #81

Closed Nickske92 closed 3 years ago

Nickske92 commented 3 years ago

So the script itself says that it ran successfully and that it added a couple of video's, but when I look at my watch later playlist, there are no video's added. I tried the older and updated version of the script, but I got the same result. Also my watch later playlist says that it updated today. 1 2 3 4

victorjzsun commented 3 years ago

Can you try on a non-watchlist playlist?

victorjzsun commented 3 years ago

I also realized I didn't update the script to the newest version so I'd recommend making a copy of the Google Sheet again to get the latest version

Nickske92 commented 3 years ago

I also realized I didn't update the script to the newest version so I'd recommend making a copy of the Google Sheet again to get the latest version

Thanks for your fast reply! I tried it with the new updated script (I named it 2.0 in sheets), but I still got the same result, no video's added in the watch later playlist. Then I tried the script on another playlist, but then I got the error message 403?

1 2 3 4 5

victorjzsun commented 3 years ago

Hm, so it says the script doesn't have access to the playlist. Are you sure you're using the same account for both Google Sheets and YouTube? There's currently no support for brand accounts. Also check that you spelled the playlist's ID correctly.

victorjzsun commented 3 years ago

If it looks right to you, can you try the following test:

  1. Within the sheet, open the script editor Tools -> Script Editor
  2. Paste the following line of code on any empty line: function test() {results=YouTube.Channels.list('snippet', {mine:true});Logger.log(results.items[0].id)}
  3. Save File -> Save
  4. Run the test Run -> Run function -> Test
  5. View log View -> Logs This should produce a timestamp and a channel id UC~~~~~~~~~
  6. Navigate to www.youtube.com/channel/<CHANNELID> replaced with the result from 5.
  7. This should be your channel and should list the playlist you're trying to add the videos to.
Nickske92 commented 3 years ago

Hm, so it says the script doesn't have access to the playlist. Are you sure you're using the same account for both Google Sheets and YouTube? There's currently no support for brand accounts. Also check that you spelled the playlist's ID correctly.

So that was the problem. I was using a Brand account. I tried the script with another normal google account and now everything works! Thanks!