From 53b3463d23f536f6362ca81e20899c6e7ed1ccbf Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 25 Jan 2024 14:07:31 +0100 Subject: [PATCH] Remove tag `_sw:yes` --- src/warc2zim/converter.py | 2 +- tests/test_warc_to_zim.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/warc2zim/converter.py b/src/warc2zim/converter.py index 98cc0ee1..118b1b08 100644 --- a/src/warc2zim/converter.py +++ b/src/warc2zim/converter.py @@ -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" diff --git a/tests/test_warc_to_zim.py b/tests/test_warc_to_zim.py index 4704aba2..c80c090f 100644 --- a/tests/test_warc_to_zim.py +++ b/tests/test_warc_to_zim.py @@ -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" @@ -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"