Youtube Chatgpt Summary to Study Journal with Timestamp Plugin #1118
mishipal
started this conversation in
Templates Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The template converts the Glasp Chatgpt Youtube Transcript Summary with timestamps to a study journal template which is compatible with Timestamp Obsidian plugin
`<%*
var content = tp.file.content; // content of file
const Content1 = tp.file.content.replace(/(\d{2})\s/, "");
const VideoTitle = Content1.replace(/(\s-\sYouTube)(.+)/gms,"");
const Content3 = content.replace(/(\n\nTranscript)(.+)/gms,"");
const VideoUrl = Content3.replace(/((\d{2})\s)(.+)(YouTube\n)/g,"");
const Folder = tp.file.folder;
const Transcript = content.replace(/((\d{2})\s)(.+)(Transcript:\n)/gms,"");
const newTranscript = Transcript.replace(/(/g, "\n
timestamp \n"); const finalTranscript = newTranscript.replace(/\)/g,"\n
\n");finalContent = "Title: " + VideoTitle + "" + "\nSeries: SeriesName" + "\n" + "No: Video Number/Total Videos in Series\n"+ "Video Date: Video Date\n" + "Study Date: "+ tp.date.now("MMMM DD, YYYY") +"\nTags: #ict \n\n" + ">[!question] #question\n>- Put your Questions or Doubts here\n\n>[!info] Concept/Idea/Observation\n>- Put ideas found in the video here\n\n>[!example] Discovery/Epiphany\n>- Put new discoveries or epiphanies here\n\n##### YouTube Link\n" + "
timestamp-url\n" + VideoUrl + "\n
\n\n" + "##### Important Timestamps\n\n\nTranscript\n" + finalTranscript;await app.vault.modify(tp.file.find_tfile(tp.file.title), finalContent);
%>`
Just Copy and paste the transcript summary which is like this
`(24) Youtube Video Title - YouTube
https://www.youtube.com/watch?v=xxxxxxxxxxx
Transcript:
(00:00) some long text
(00:26) some long text
(00:46) some long text`
Beta Was this translation helpful? Give feedback.
All reactions