forked from openzim/youtube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffliner-definition.json
More file actions
200 lines (200 loc) · 6.28 KB
/
offliner-definition.json
File metadata and controls
200 lines (200 loc) · 6.28 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"offliner_id": "youtube",
"stdOutput": true,
"stdStats": true,
"flags": {
"optimization_cache": {
"type": "url",
"required": false,
"title": "Optimization Cache URL",
"description": "S3 Storage URL including credentials and bucket",
"secret": true
},
"api_key": {
"type": "string",
"required": true,
"title": "API Key",
"description": "Youtube API Token",
"secret": true
},
"ident": {
"type": "string",
"required": true,
"title": "Youtube ID(s)",
"description": "Youtube ID(s) of the handle, channel, user, or playlist(s) to ZIM (depending on the Type chosen below). Only playlist Type support multiple Youtube IDs and they must be separated by commas.",
"alias": "id"
},
"language": {
"type": "string",
"required": false,
"title": "Language",
"description": "ISO-639-3 (3 chars) language code of content",
"pattern": "^[a-z]{3}(,[a-z]{3})*$",
"customValidator": "language_code"
},
"name": {
"type": "string",
"required": true,
"title": "ZIM Name",
"description": "Used as identifier and filename (date will be appended)",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+)$"
},
"zim_file": {
"type": "string",
"required": false,
"title": "ZIM Filename",
"description": "ZIM file name (optional, based on ZIM Name if not provided). Include {period} to insert date period dynamically",
"pattern": "^([a-z0-9\\-\\.]+_)([a-z\\-]+_)([a-z0-9\\-\\.]+_)([a-z0-9\\-\\.]+_|)([\\d]{4}-[\\d]{2}|\\{period\\}).zim$"
},
"title": {
"type": "string",
"required": false,
"title": "ZIM Title",
"description": "Custom title for your ZIM. Default to Channel name (of first video if playlists)",
"minLength": 1,
"maxLength": 30
},
"description": {
"type": "string",
"required": false,
"title": "ZIM Description",
"description": "Description (up to 80 chars) for ZIM",
"minLength": 1,
"maxLength": 80
},
"long_description": {
"type": "string",
"required": false,
"title": "ZIM Long Description",
"description": "Long description (up to 4000 chars) for ZIM",
"minLength": 1,
"maxLength": 4000
},
"creator": {
"type": "string",
"required": false,
"title": "Content Creator",
"description": "Name of content creator. Defaults to Channel name or \"Youtube Channels\""
},
"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. _videos:yes added automatically"
},
"dateafter": {
"type": "string",
"required": false,
"title": "Only after date",
"description": "Custom filter to download videos uploaded on or after specified date. Format: YYYYMMDD or (now|today)[+-][0-9](day|week|month|year)(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"
},
"use_any_optimized_version": {
"type": "boolean",
"required": false,
"title": "Use any optimized version",
"description": "Use the cached files if present, whatever the version"
},
"all_subtitles": {
"type": "boolean",
"required": false,
"title": "All Subtitles",
"description": "Include auto-generated subtitles"
},
"pagination": {
"type": "integer",
"required": false,
"title": "Pagination",
"description": "Number of videos per page (40 otherwise)",
"min": 1
},
"profile": {
"type": "blob",
"kind": "image",
"required": false,
"title": "Profile Image",
"description": "Custom profile image. Squared. Will be resized to 100x100px"
},
"banner": {
"type": "blob",
"kind": "image",
"required": false,
"title": "Banner Image",
"description": "Custom banner image. Will be resized to 1060x175px"
},
"main_color": {
"type": "string",
"required": false,
"title": "Main Color",
"description": "Custom color. Hex/HTML syntax (#DEDEDE). Default to main color of profile image."
},
"secondary_color": {
"type": "string",
"required": false,
"title": "Secondary Color",
"description": "Custom secondary color. Hex/HTML syntax (#DEDEDE). Default to secondary color of profile image."
},
"debug": {
"type": "boolean",
"required": false,
"title": "Debug",
"description": "Enable verbose output"
},
"concurrency": {
"type": "integer",
"required": false,
"title": "Concurrency",
"description": "Expert flag: Number of concurrent threads to use",
"min": 1
},
"output": {
"type": "string",
"required": false,
"title": "Output folder",
"description": "Output folder for ZIM file(s). Leave it as `/output`",
"pattern": "^/output$"
},
"stats_filename": {
"type": "string",
"required": false,
"title": "Stats filename",
"description": "Scraping progress file. Leave it as `/output/task_progress.json`",
"pattern": "^/output/task_progress\\.json$"
},
"tmp_dir": {
"type": "string",
"required": false,
"title": "Temp folder",
"description": "Where to create temporay build folder. Leave it as `/output`",
"pattern": "^/output$"
},
"skip_reencoding": {
"type": "boolean",
"required": false,
"title": "Skip reencoding",
"description": "Skip reencoding downloaded videos, keeping original quality at the expense of increased final ZIM size and potential codec issues."
}
}
}