Batch Process Multiple YouTube Links into Formatted YouTube Notes #1638
Replies: 2 comments 3 replies
-
| 
         Thank you so much for this!  It is exactly what I was looking for and works perfectly.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hmm. I can't find how the template knows to look at the /sources/youtube/Queue for YouTube Link.md file.  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
📝 Quick Introduction
Taking YouTube notes is a staple of my self-study journey and I found that the Templater templates shared in a discussion to be very useful in retrieving the information (such as channel name and duration) but would work on one video at a time, when I have 10s of them.
I don't think there's any Queue / Batch Processing made for multiple YouTube links yet, so I'd like to share the code I made but incorporates a loop to go through all listed YouTube links from a separate markdown file to create a YouTube note one by one.
💡 Feature Highlights
tp.file.find_tfilecommand in the destination folder.☝️ Future Works
It's possible to extend this functionality to create multiple YouTube notes for videos inside a YouTube playlist, given the playlist link. It'll be a future side-project I would be working on.
The Template 📄
Prerequisites:
sources/youtubeworks for me and you can change it in the template later).Queue for YouTube Link.md)yt queue.md:Feel free to make changes to suit your template, but note that you need to define the properties in JavaScript outside of the string template, you can't include the Templater starting and ending tags (I don't know what they're called, but you get the idea).
🧑💻 How to use
yt queue.mdinto your Templater folderQueue for YouTube Link.mdand insert a few YouTube links (I've got some links prepped in the code block below for you to test it with)yt queueand press enter.Here's a few YouTube links that should help you test it out:
💭 After thought
I previously experimented by using the
tp.file.include()so I can dynamically include the different templates I want to use, for example my template for YouTube shorts and long form YouTube videos aren't the same, but I wasn't successful in implementing it, as passing the URL to the template was difficult, perhaps atp.userfunction as a work around - but I didn't want to stretch it that far.✌ Best of luck!
I hope this template helps out other people as it did for me. Thanks and best of luck in your endeavors!
Edit:
Beta Was this translation helpful? Give feedback.
All reactions