zimdump show weird behaviour
$ zimdump show --ns=M --url=Name gutenberg_fa_all_2022-01.zim
Entry not found
is wrong, it should deliver the name like:
$ zimdump show --url=M/Name gutenberg_fa_all_2022-01.zim
gutenberg_fa_all_2022-01
I wonder if keeping the --ns option is a good thing.
Libzim moved to an API where we remove/hide the namespace, it is a bit odd (and buggy) to keep the concept in zimdump.
- The
dumpcommand only "user" entries (inCnamespace) for new zim files. So the--nsoption is useless. - The PR #316 works only because of the compatibility layer to support old bookmarks (including the ns) with old zimfiles (even if it works with new zim files)
It would be better to ask ourselves how we provide a better api to display metadata (and other non user entries ?)
Maybe a zimdump metadata --name=Name gutenberg_fa_all_2022-01.zim ?
Either ways are OK, but having both seems indeed a bit confusing.
The right approach is probably to remove fully the namespace concept IMO... and create the appropriate function to access other namespaces. This is how the libzim works and zimdump should work like this probably.