Like 0

astn revised this gist 1 day ago · abcc34b

1 file changed

obsidian-clipper-youtube.json renamed to obsidian-web-clipper-youtube.json

File renamed without changes

astn revised this gist 1 day ago · 0a5b989

1 file changed, 63 insertions

obsidian-clipper-youtube.json (file created)
@@ -0,0 +1,63 @@
1 + {
2 + "schemaVersion": "0.1.0",
3 + "name": "YouTube Video",
4 + "behavior": "create",
5 + "noteContentFormat": "{{content}}\n",
6 + "properties": [
7 + {
8 + "name": "title",
9 + "value": "{{schema:@VideoObject:name}}",
10 + "type": "text"
11 + },
12 + {
13 + "name": "author",
14 + "value": "{{schema:@VideoObject:author|split:\\\", \\\"|wikilink|join}}",
15 + "type": "multitext"
16 + },
17 + {
18 + "name": "date published",
19 + "value": "{{schema:@VideoObject:uploadDate|date:\\\"YYYY-MM-DD\\\"}}",
20 + "type": "date"
21 + },
22 + {
23 + "name": "date saved",
24 + "value": "{{date}}",
25 + "type": "date"
26 + },
27 + {
28 + "name": "thumbnail",
29 + "value": "{{schema:@VideoObject:thumbnailUrl|first}}",
30 + "type": "text"
31 + },
32 + {
33 + "name": "duration",
34 + "value": "{{selector:ytd-player .ytp-time-duration|split:\\\":\\\"|slice:-3,-2|first|replace:\\\"[]\\\":\\\"0\\\"}}h {{selector:ytd-player .ytp-time-duration|split:\\\":\\\"|slice:-2,-1|first}}m",
35 + "type": "text"
36 + },
37 + {
38 + "name": "description",
39 + "value": "{{schema:@VideoObject:description}}",
40 + "type": "text"
41 + },
42 + {
43 + "name": "tags",
44 + "value": "clippings, youtube",
45 + "type": "multitext"
46 + },
47 + {
48 + "name": "source",
49 + "value": "{{url}}",
50 + "type": "text"
51 + },
52 + {
53 + "name": "type",
54 + "value": "clipping",
55 + "type": "text"
56 + }
57 + ],
58 + "triggers": [
59 + "https://youtube.com"
60 + ],
61 + "noteNameFormat": "{{title}}",
62 + "path": "Collections/Clippings"
63 + }