Skip to content

Commit

Permalink
Remove tag _sw:yes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Jan 25, 2024
1 parent aca2db3 commit 53b3463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/warc2zim/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
HEAD_INSERT_FILE = "head_insert.html"

# Default ZIM metadata tags
DEFAULT_TAGS = ["_ftindex:yes", "_category:other", "_sw:yes"]
DEFAULT_TAGS = ["_ftindex:yes", "_category:other"]

CUSTOM_CSS_URL = "https://warc2zim.kiwix.app/custom.css"

Expand Down
7 changes: 2 additions & 5 deletions tests/test_warc_to_zim.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def test_warc_to_zim_specify_params_and_metadata(self, tmp_path):
assert self.get_metadata(zim_output, "Description") == b"test zim"
assert (
self.get_metadata(zim_output, "Tags")
== b"_ftindex:yes;_category:other;_sw:yes;some;foo;bar"
== b"_ftindex:yes;_category:other;some;foo;bar"
)
assert self.get_metadata(zim_output, "Title") == b"Some Title"

Expand Down Expand Up @@ -374,10 +374,7 @@ def test_include_domains_favicon_and_language(self, tmp_path):
assert self.get_metadata(zim_output, "Illustration_48x48@1")

# test default tags added
assert (
self.get_metadata(zim_output, "Tags")
== b"_ftindex:yes;_category:other;_sw:yes"
)
assert self.get_metadata(zim_output, "Tags") == b"_ftindex:yes;_category:other"

def test_all_warcs_root_dir(self, tmp_path):
zim_output = "test-all.zim"
Expand Down

0 comments on commit 53b3463

Please sign in to comment.