-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathoffliner-definition.json
More file actions
184 lines (184 loc) · 6.12 KB
/
offliner-definition.json
File metadata and controls
184 lines (184 loc) · 6.12 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"offliner_id": "ted",
"stdOutput": true,
"stdStats": false,
"flags": {
"topics": {
"type": "string",
"required": false,
"title": "Topics",
"description": "Comma-separated list of topics to scrape; as given on ted.com/talks. Pass all for all topics. Exclusive with playlists and links, only one must be set."
},
"playlists": {
"type": "string",
"required": false,
"title": "TED Playlists",
"description": "Comma-separated list of TED playlist IDs to scrape. Pass all for all playlists. Exclusive with topics and links, only one must set."
},
"links": {
"type": "string",
"required": false,
"title": "Links",
"description": "Comma-separated TED talk URLs to scrape, each in the format: https://www.ted.com/talks/<talk_slug>. Exclusive with topics and playlists, only one must set.",
"customValidator": "validate_ted_links"
},
"languages": {
"type": "string",
"required": false,
"title": "Languages",
"description": "Comma-separated list of ISO-639-3 language codes to filter videos. Do not pass this parameter for all languages",
"pattern": "^[a-z]{3}(,[a-z]{3})*$",
"customValidator": "language_code"
},
"subtitles_enough": {
"type": "boolean",
"required": false,
"title": "Subtitles enough?",
"description": "Whether to include videos that have a subtitle in requested language(s) if audio is in another language"
},
"subtitles": {
"type": "string",
"required": false,
"title": "Subtitles Setting",
"description": "Language setting for subtitles. all: include all available subtitles, matching (default): only subtitles matching language(s), none: include no subtitle. Also accepts comma-separated list of language(s)"
},
"format": {
"type": "string-enum",
"required": false,
"title": "Video format",
"description": "Format to download/transcode video to. webm is smaller",
"choices": [
{ "title": "WEBM", "value": "webm" },
{ "title": "MP4", "value": "mp4" }
]
},
"low_quality": {
"type": "boolean",
"required": false,
"title": "Low Quality",
"description": "Re-encode video using stronger compression"
},
"autoplay": {
"type": "boolean",
"required": false,
"title": "Autoplay videos",
"description": "Enable autoplay on videos. Behavior differs on platforms/browsers"
},
"name": {
"type": "string",
"required": true,
"title": "Name",
"description": "ZIM name. Used as identifier and filename (date will be appended)",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+)$"
},
"title": {
"type": "string",
"required": false,
"title": "Title",
"description": "Custom title for your ZIM. Based on selection otherwise",
"minGraphemes": 1,
"maxGraphemes": 30
},
"description": {
"type": "string",
"required": false,
"title": "Description",
"description": "Custom description for your ZIM. Based on selection otherwise",
"minGraphemes": 1,
"maxGraphemes": 80
},
"long_description": {
"type": "string",
"required": false,
"title": "Long description",
"description": "Custom long description for your ZIM. Based on selection otherwise",
"minGraphemes": 1,
"maxGraphemes": 4000
},
"creator": {
"type": "string",
"required": false,
"title": "Content Creator",
"description": "Name of content creator. Defaults to TED"
},
"publisher": {
"type": "string",
"required": false,
"title": "Publisher",
"isPublisher": true,
"description": "Custom publisher name (ZIM metadata). \"openZIM\" otherwise"
},
"tags": {
"type": "string",
"required": false,
"title": "ZIM Tags",
"description": "List of comma-separated Tags for the ZIM file. category:ted, ted, and _videos:yes added automatically"
},
"optimization_cache": {
"type": "url",
"required": false,
"title": "Optimization Cache URL",
"description": "URL with credentials and bucket name to S3 Optimization Cache",
"secret": true
},
"use_any_optimized_version": {
"type": "boolean",
"required": false,
"title": "Use any optimized version",
"description": "Use the cached files if present, whatever the version"
},
"output": {
"type": "string",
"required": false,
"title": "Output folder",
"description": "Output folder for ZIM file(s). Leave it as `/output`",
"pattern": "^/output$"
},
"tmp_dir": {
"type": "string",
"required": false,
"title": "Temp folder",
"description": "Where to create temporay build folder. Leave it as `/output`",
"pattern": "^/output$"
},
"zim_file": {
"type": "string",
"required": false,
"title": "ZIM filename",
"description": "ZIM file name (based on ZIM name if not provided)",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+_)([a-z0-9\\-\\.]+_|)([\\d]{4}-[\\d]{2}|\\{period\\}).zim$"
},
"debug": {
"type": "boolean",
"required": false,
"title": "Debug",
"description": "Enable verbose output"
},
"threads": {
"type": "integer",
"required": false,
"title": "Threads",
"description": "Number of parallel threads to use while downloading"
},
"locale": {
"type": "string",
"required": false,
"title": "Locale",
"description": "The locale to use for the translations in ZIM"
},
"language_threshold": {
"type": "integer",
"required": false,
"title": "Language Threshold",
"description": "Add language in ZIM metadata only if present in at least this percentage of videos. Number between 0 and 1. Defaults to 0.5: language must be used in 50% of videos to be considered as ZIM language.",
"min": 0,
"max": 1
}
},
"modelValidators": [
{
"name": "check_exclusive_fields",
"fields": ["links", "topics", "playlists"]
}
]
}