Skip to content

Commit

Permalink
fixup! Add more arguments to make_zim_file
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Mar 21, 2024
1 parent 7d0fdf0 commit d18275c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add support for `disable_metadata_checks` arguments in `make_zim_file` function ("zimwritefs-mode")
- Add support for `disable_metadata_checks` and `ignore_duplicates` arguments in `make_zim_file` function ("zimwritefs-mode")

### Changed

Expand Down
2 changes: 2 additions & 0 deletions src/zimscraperlib/zim/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def make_zim_file(
redirects_file: pathlib.Path = None, # noqa: RUF013 # pyright: ignore
rewrite_links: bool = True, # noqa: FBT001, FBT002, ARG001
workaround_nocancel: bool = True, # noqa: FBT001, FBT002
ignore_duplicates: bool = True, # noqa: FBT001, FBT002
disable_metadata_checks: bool = False, # noqa: FBT001, FBT002
):
"""Creates a zimwriterfs-like ZIM file at {fpath} from {build_dir}
Expand All @@ -161,6 +162,7 @@ def make_zim_file(
zim_file = Creator(
filename=fpath,
main_path=main_page,
ignore_duplicates=ignore_duplicates,
disable_metadata_checks=disable_metadata_checks,
).config_metadata(
**{
Expand Down

0 comments on commit d18275c

Please sign in to comment.