Kelson

Results 4077 comments of Kelson

@benoit74 This lools like the redirects would be wrongly counted in the `articleCount`!

These numbers should be based on `Counter` Metadata, see https://wiki.openzim.org/wiki/Metadata. The libkiwix provides the primitives to have both article and media counts.

> And counter is even correct: I can not say formsure if it is the reason of this bug, but this counter does not respect the spec in many parts...

Actually this is not checked properly in `zimcheck` either, therefore making a [feature request](https://github.com/openzim/zim-tools/issues/473).

@benoit74 The `Counter` metadata is indeed written by the libzim, based on the mime-types given by MWoffliner. See https://github.com/openzim/libzim/blob/main/src/writer/counterHandler.h for the exact piece of code. In the string `application/javascript=4;application/pdf=3;image/apng=1;image/gif=5166;image/jpeg=280;image/png=124;image/svg+xml=8;image/svg+xml; charset=utf-8;...

> > In the string `application/javascript=4;application/pdf=3;image/apng=1;image/gif=5166;image/jpeg=280;image/png=124;image/svg+xml=8;image/svg+xml; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/SVG/1.0.0"=67381;image/webp=524540;text/css=28;text/html=50000;text/html; charset=iso-8859-1=1;text/javascript=3` which is the `Counter` metadata for `[/wikipedia_en_top_maxi_2025-06.zim` I see following problems: > > > > * `image/svg+xml;` which has not `=xyz`...

@benoit74 Do we have created a regression in MWoffliner? Have we started to count redirects? I though first this is the same as https://github.com/openzim/libzim/issues/1000... but it seems wrong in an...

> This is clearly a ZIM issue ; should be transfered to mwoffliner. @rgaudin Thank you for the very quick analysis. I will transfer the issue.

Redirects to FRONT articles been FRONT themselves is good, but they should never be included in Counter metatada.