[wp-meta] [Making WordPress.org] #1430: Auto post published videos to YouTube channel
Making WordPress.org
noreply at wordpress.org
Thu Sep 1 20:50:47 UTC 2022
#1430: Auto post published videos to YouTube channel
--------------------------+---------------------
Reporter: BrashRebel | Owner: (none)
Type: enhancement | Status: new
Priority: high | Milestone:
Component: WordPress.tv | Resolution:
Keywords: |
--------------------------+---------------------
Comment (by eidolonnight):
I’ve been looking into this ticket for a little while and wanted to share
some work toward at least cross-posting ''new'' content from WPTV to YT. I
know that this doesn't address a full switch to YouTube, which @casiepa
mentions above, but it seems like a possible stop-gap.
WordPress.tv content is valuable and could be a great asset for building
our YouTube audience. YouTube itself is huge and could be a growth
opportunity for WPTV and Learn content. As such, I've been exploring if I
could build a robust solution (one requiring little to no maintenance)
using Zapier, an automation platform that maintains several app
connectors. The resulting “Zap” looks like this:
[[Image(https://nicholasgarofalo.com/wp-
content/uploads/2022/09/cleanshot-2022-09-01-at-14.51.29402x.png)]]
1. Zapier checks https://wordpress.tv/feed/ every 1-15 minutes (plan
dependent).
2. When Zapier detects a new feed item, it grabs the video thumbnail
filename and performs a search-and-replace to get the video filename:
{{{
let OUTPUT = INPUT.replace(/_mp4\.scrubthumb.*jpg/, '.mp4');
}}}
3. Using the video filename and other feed data, Zapier uploads the video,
with title, description, and link back to WPTV, to YouTube. Subtitles and
other metadata are either not available in the feed or not supported by
Zapier’s YouTube connection. This additional stuff does not appear to have
been part of the old solution either.
I have this working and posting unlisted videos to my personal YouTube.
Step 2 is the weak point here. Unfortunately, the video filename is not
available in the RSS feed. My early attempts used the embed URL and
metadata available on that page, but this required 4-5 steps or “tasks” in
Zapier. Tasks, the steps that take place after a trigger, are part of the
Zapier pricing model so this approach would ultimately be more expensive.
**So my question is this:** Is there any possibility for the video
filename to be added to the RSS feed? If not, can the video filename be
reliably derived from the thumbnail filename (as shown above)? I've tested
with the last half dozen or so posts, and it seems OK, but I'm unsure what
format/structure these filenames ''could'' take in the future.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1430#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list