This is a Google Apps Script that automatically adds new Youtube videos to playlists (a replacement for Youtube Collections feature).
This is done using Google Sheets for interface, Google Script + Youtube API v3 for executing and scheduling.
- Adds all new videos to Youtube playlists (uploaded later than some date)
1.1. From ALL subscribed channels
1.2. From any list of channels (by username or channel ID)
- Optional - ability to set automatic interval for updates
- Copy the Sheet to your Google Drive.
- Allow the Sheets to access Youtube:
- Open the
Script Editor
(in menu:Tools
/Script Editor...
) of the Sheet - In menu:
Resources
/Advanced Google Services
/Google Developers Console
/Youtube Data API
/Enable API
- Close the Developers Console and Script Editor, open the Sheet again
- In menu:
Functions
/Update Playlists
- Grant access in the dialog
- Setup your playlists and channels (white cells in the Sheet):
- Your Playlist IDs (you can find it in the URLs of your playlists, after
?list=
) - Channels for the playlists
- Open the Google Sheet, then in menu:
Functions
/Update Playlists
. (Notice: when used first time, only a timestamp will be added (prevents overflow with old videos)).
- In menu (of the Sheet):
Tools
/Script Editor...
- In menu:
Resources
/Current project triggers
updatePlaylists
->Time driven
->Hour timer
->Every hour
Save
To remove all playlist items, bookmark the link below and click on it while having the youtube playlist page open.
javascript:(function() { if (confirm('Remove all?')) {var i = window.setInterval(function() {var closeButton = document.querySelector('.pl-video-edit-remove'); if (closeButton) { closeButton.click(); } else { window.clearInterval(i); }}, 500);}})();
(source)