{
	"schemaVersion": "0.1.0",
	"name": "YouTube (Open Transcript)",
	"behavior": "create",
	"noteContentFormat": "![{{title}}]({{schema:@VideoObject:@id}})\n\n{{schema:@VideoObject:description|callout:(\"summary\",\"Description\",true)}}\n\n{{\"Given the YouTube video information and transcript. Analyze and generate the following:\\n## Summary\\n\\nBriefly summarize the video.\\n\\n## Key Takeaways\\n\\nList the key takeaways in the video.\\n\\n## Mindmap\\n\\nGenerate mindmap of the video with simple mermaid syntax, do not use icon.\\n\\n## Notable Quotes\\n\\nIdentify list of notable quotes from the transcript. Use following format to make a link for each quote so that it's easy to revisit:\\n\\n- [timesamp: transcript](https://www.youtube.com/watch?v=<video_id>&t=<timestamp_in_seconds>s)\"}}\n\n{{selectorHtml:ytd-transcript-segment-renderer .segment-timestamp, ytd-transcript-segment-renderer yt-formatted-string|join:\"\\n\"|markdown|callout:(\"transcript\",\"Transcript (YouTube)\",true)}}",
	"properties": [
		{
			"name": "title",
			"value": "{{schema:@VideoObject:name}}",
			"type": "text"
		},
		{
			"name": "description",
			"value": "{{schema:@VideoObject:description}}",
			"type": "text"
		},
		{
			"name": "channel",
			"value": "{{schema:@VideoObject:author}}",
			"type": "text"
		},
		{
			"name": "url",
			"value": "{{schema:@VideoObject:@id}}",
			"type": "text"
		},
		{
			"name": "duration",
			"value": "{{selector:#ytd-player .ytp-time-duration}}",
			"type": "text"
		},
		{
			"name": "published",
			"value": "{{schema:@VideoObject:uploadDate|date:\\\"YYYY-MM-DD\\\"}}",
			"type": "date"
		},
		{
			"name": "created",
			"value": "{{time}}",
			"type": "datetime"
		},
		{
			"name": "thumbnailUrl",
			"value": "{{schema:@VideoObject:thumbnailUrl|first}}",
			"type": "text"
		},
		{
			"name": "genre",
			"value": "{{schema:@VideoObject:genre}}",
			"type": "multitext"
		},
		{
			"name": "watched",
			"value": "",
			"type": "text"
		}
	],
	"triggers": [
		"https://www.youtube.com/watch?v="
	],
	"noteNameFormat": "{{schema:@VideoObject:name|safe_name|trim}}",
	"path": "✂ Clippings/YouTube",
	"context": "# {{schema:@VideoObject:name}}\n\n{{schema:@VideoObject:description}}\n\n## Basic Information\n\n- Link: {{schema:@VideoObject:@id}}\n- Channel: {{schema:@VideoObject:author}}\n\n## Transcript\n\n{{selectorHtml:ytd-transcript-segment-renderer .segment-timestamp, ytd-transcript-segment-renderer yt-formatted-string|join:\"\\n\"|markdown}}"
}