forked from Nandaka/PixivUtil2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content_provider.json
77 lines (77 loc) · 2.44 KB
/
content_provider.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"embedConfig": {
"twitter": {
"serviceProvider": "twitter",
"keys": ["contentId"],
"format": "<a href='https://twitter.com/_/status/{0}'>twitter post: {0}</a>",
"ignore": false
},
"youtube": {
"serviceProvider": "youtube",
"keys": ["contentId", "videoId"],
"format": "<a href='https://www.youtube.com/watch?v={0}'>youtube post: {0}</a>",
"ignore": false
},
"fanbox": {
"serviceProvider": "fanbox",
"keys": ["contentId"],
"format": "<a href='https://www.pixiv.net/fanbox/{0}'>fanbox post: {0}</a>",
"ignore": false
},
"vimeo": {
"serviceProvider": "vimeo",
"keys": ["contentId", "videoId"],
"format": "<a href='https://vimeo.com/{0}'>vimeo post: {0}</a>",
"ignore": false
},
"google_forms": {
"serviceProvider": "google_forms",
"keys": ["contentId"],
"format": "<a href='https://docs.google.com/forms/d/e/{0}/viewform?usp=sf_link'>Google Form: {0}</a>",
"ignore": false
},
"soundcloud": {
"serviceProvider": "soundcloud",
"keys": ["videoId"],
"format": "<a href='https://soundcloud.com/{0}'>soundcloud post: {0}</a>",
"ignore": false
}
},
"urlEmbedConfig": {
"html.card": {
"type": "html.card",
"keys": ["html"],
"get_link_keys": ["html"],
"format": "<p>{0}</p>",
"ignore": false
},
"html": {
"type": "html",
"keys": ["html"],
"get_link_keys": ["html"],
"format": "<p>{0}</p>",
"ignore": false
},
"fanbox.post": {
"type": "fanbox.post",
"get_link_keys": ["postInfo.excerpt"],
"keys": ["postInfo.title", "postInfo.cover.url", "postInfo.excerpt", "postInfo.creatorId", "postInfo.id"],
"format": "<h3><a href='https://www.fanbox.cc/@{3}/posts/{4}'>{0}</a></h3>\n<p><img src='{1}'/></p>\n<p>{2}</p>\n",
"ignore": false
},
"fanbox.creator": {
"type": "fanbox.creator",
"get_link_keys": ["profile.description"],
"keys": ["profile.creatorId", "profile.coverImageUrl", "profile.user.iconUrl", "profile.user.name", "profile.description"],
"format": "\n\n<div style='width: 80%; margin: auto; border-style: dashed;'><div><img src='{1}'/></div><div><h3><img src='{2}'/><a href='https://{0}.fanbox.cc/'>{3}</a></h3></div><pre>{4}</pre></div>\n\n",
"ignore": false
},
"default": {
"type": "default",
"get_link_keys": ["url"],
"keys": ["url", "host"],
"format": "<div><div><div><a href='{0}' ><div>{1}</div><div>{0}</div></a></div></div></div>",
"ignore": false
}
}
}