Skip to content

Commit

Permalink
Merge pull request #1007 from openzim/zimit_2_1_0
Browse files Browse the repository at this point in the history
Add parameters from Zimit 2.1.0
  • Loading branch information
benoit74 authored Aug 9, 2024
2 parents 4d90e63 + df07d46 commit 679d92d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,36 @@ class Meta:
data_key="ignore-http-header-charsets",
)

profile = String(
metadata={
"label": "Browser profile",
"description": "Path or HTTP(S) URL to tar.gz file which contains the "
"browser profile directory for Browsertrix crawler.",
},
required=False,
)

custom_behaviors = String(
metadata={
"label": "Custom behaviors",
"description": "JS code for custom behaviors to customize crawler. Single "
"string with individual JS files URL/path separated by a comma.",
},
required=False,
data_key="custom-behaviors",
)

warcs = String(
metadata={
"label": "WARC files",
"description": "Directly convert WARC archives to ZIM, by-passing the "
"crawling phase. This argument must contain the path or HTTP(S) URL to "
"either warc.gz files or to a tar.gz containing the warc.gz files. "
"Single value with individual path/URLs separated by comma.",
},
required=False,
)


class ZimitFlagsSchemaRelaxed(ZimitFlagsSchema):
"""A Zimit flags schema with relaxed constraints on validation
Expand Down

0 comments on commit 679d92d

Please sign in to comment.