File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
dispatcher/backend/src/common/schemas/offliners Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -171,16 +171,23 @@ class Meta:
171
171
metadata = {"label" : "Debug" , "description" : "Enable verbose output" },
172
172
)
173
173
174
- html_issues_warn_only = fields .Boolean (
175
- truthy = [True ],
176
- falsy = [False ],
174
+ bad_assets_regex = String (
175
+ metadata = {
176
+ "label" : "Bad assets regex" ,
177
+ "description" : "Regular expression of asset URLs known to not be available."
178
+ "Case insensitive." ,
179
+ },
180
+ data_key = "bad-assets-regex" ,
181
+ )
182
+
183
+ bad_assets_threshold = fields .Integer (
177
184
metadata = {
178
- "label" : "HTML issues warn only " ,
179
- "description" : "[dev] Only log a warning when unexpected HTML is "
180
- "encountered. Use with caution because activating this option means that "
181
- "ZIM HTML will probably lead to online resources without user noticing it ." ,
185
+ "label" : "Bad assets threshold " ,
186
+ "description" : "[dev] Number of assets allowed to fail to download before "
187
+ "failing the scraper. Assets already excluded with --bad-assets-regex are "
188
+ "not counted for this threshold. Defaults to 10 assets ." ,
182
189
},
183
- data_key = "html-issues-warn-only " ,
190
+ data_key = "bad-assets-threshold " ,
184
191
)
185
192
186
193
stats_filename = String (
You can’t perform that action at this time.
0 commit comments