Skip to content

Use Google App Script to create upcoming live events in your Google Calendar

Notifications You must be signed in to change notification settings

Xi-Plus/youtube-live-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

youtube-live-calendar

Use Google App Script to create upcoming live events in your Google Calendar

Setup

Script ID: 1prTvghhm4asQBDa3YpnmGLoCIWeTZV7dQHDFA-UM4vZLZQ9EAU8zkpmx
See https://developers.google.com/apps-script/guides/libraries#add_a_library_to_your_script_project

Getting Started

var subscribedChannels = [
  {key: 'CDC', shortName: 'TCDC', id: 'UCyh91eTE9jA3ykg8W3_v3DQ'},
  // Add more channels as above
]
// Find your Calendar ID in https://calendar.google.com/calendar/u/0/r/settings
var calendarId = 'xxxxxxxxxxxxxxxxxxxxxxxxxx@group.calendar.google.com'
var YTLC = YouTubeLiveCalendar.init(calendarId, subscribedChannels)

// Run single channel
function runCDC() {
  YTLC.runChannel('CDC')
}

// Run all channels defined in subscribedChannels
function runAllChannels() {
  YTLC.runAllChannels()
}

// Use this method to list your subscriptions and find channel ID
function listSubscriptions() {
  YTLC.listSubscriptions()
}

About

Use Google App Script to create upcoming live events in your Google Calendar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published