From 90a44a567e8d5936497c0946712c247bc2318074 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 4 Feb 2025 17:18:45 +0100 Subject: [PATCH] Do not copy entry in 'W' namespace when recreating zim file. Entries in 'W' namespace are automatically created by libzim creator. This is especially important as we will "lost" the namespace and so we would add the entry as an user entry. --- src/zimrecreate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zimrecreate.cpp b/src/zimrecreate.cpp index 1c45742c..727492de 100644 --- a/src/zimrecreate.cpp +++ b/src/zimrecreate.cpp @@ -151,7 +151,7 @@ void create(const std::string& originFilename, const std::string& outFilename, b // We have to adapt the content to drop the namespace. auto path = entry.getPath(); - if (path[0] == 'Z' || path[0] == 'X' || path[0] == 'M') { + if (path[0] == 'Z' || path[0] == 'X' || path[0] == 'M' || path[0] == 'W') { // Index is recreated by zimCreator. Do not add it continue; }