Skip to content

Commit 7d0fdf0

Browse files
committed
fixup! Add more arguments to make_zim_file
1 parent 128a2b0 commit 7d0fdf0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Add support for `disable_metadata_checks`, `ignore_duplicates` and `compression` arguments in `make_zim_file` function ("zimwritefs-mode")
12+
- Add support for `disable_metadata_checks` arguments in `make_zim_file` function ("zimwritefs-mode")
1313

1414
### Changed
1515

src/zimscraperlib/zim/filesystem.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ def make_zim_file(
134134
redirects: Sequence[tuple[str, str, str]] = None, # noqa: RUF013 # pyright: ignore
135135
redirects_file: pathlib.Path = None, # noqa: RUF013 # pyright: ignore
136136
rewrite_links: bool = True, # noqa: FBT001, FBT002, ARG001
137-
workaround_nocancel: Optional[bool] = True, # noqa: FBT002
138-
compression: Optional[str] = None,
139-
ignore_duplicates: Optional[bool] = False, # noqa: FBT002
137+
workaround_nocancel: bool = True, # noqa: FBT001, FBT002
140138
disable_metadata_checks: bool = False, # noqa: FBT001, FBT002
141139
):
142140
"""Creates a zimwriterfs-like ZIM file at {fpath} from {build_dir}
@@ -163,9 +161,6 @@ def make_zim_file(
163161
zim_file = Creator(
164162
filename=fpath,
165163
main_path=main_page,
166-
compression=compression,
167-
workaround_nocancel=workaround_nocancel,
168-
ignore_duplicates=ignore_duplicates,
169164
disable_metadata_checks=disable_metadata_checks,
170165
).config_metadata(
171166
**{

0 commit comments

Comments
 (0)