Skip to content

(BETA) Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative)

Notifications You must be signed in to change notification settings

toxic0berliner/auto-youtube-subscription-playlist-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Description

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.

Features

  1. 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)

  1. Optional - ability to set automatic interval for updates

Set-up Instructions

  1. Copy the Sheet to your Google Drive.
  2. 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
  1. 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

Usage

Manual playlist update:
  1. 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)).
Scheduled playlist update:
  1. In menu (of the Sheet): Tools / Script Editor...
  2. In menu: Resources / Current project triggers
  3. updatePlaylists -> Time driven -> Hour timer -> Every hour
  4. Save
(Extra) Link to remove all items:

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)

Feedback

Official Reddit Thread

About

(BETA) Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%