Auto Publish Youtube Videos to Planning Center Publishing

Sept. 24, 2020

This one gets fairly technical. But if you are comfortable with running python from the command line and setting up a cron job then you can easily setup a tab in Planning Center Publisher that will display the latest 10-15 videos from your Church Youtube Channel.

pco-youtube-publisher

This is a simple script to publish a youtube channel's latest 10 videos to a Planning Center Publishing page. It's the latest 10 videos because I've noticed instability with the Church Center App when adding more videos. The configuration for your youtube channel and the page you want to publish to is in the .env file. The Slug and Title will be created if it doesn't exist.

It takes a youtube channel like this:

youtube.png

And turns it into a Church Center page like this:

church_center.png

https://yourcbcfamily.churchcenter.com/pages/media

Setup

PCO_CLIENT_ID=Application ID
PCO_CLIENT_SECRET=Secret
PCO_PUBLISHING_SLUG=test
PCO_PUBLISHING_TITLE=TEST
YOUTUBE_CHANNEL=Channel ID
LIVE_EMBED_CODE=<h1>Live</h1><iframe src="https://vimeo.com/event/174541/embed" width="560" height="315" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
LIVE_DAY=6

vimeo_sm.png

Crontab

Files

Get all the files in a zipfile: Download pco-youtube-publisher

Contribute

If you'd like to contribute to the code pull requests are welcome!: Github-pco-youtube-publisher