Veloman Yunkan
51bd881211
kiwix::Suggestions::add()
2022-11-17 11:51:53 +04:00
Veloman Yunkan
18f4a58237
Conception of kiwix::Suggestions
2022-11-17 11:51:53 +04:00
Matthieu Gautier
8cec014691
Use new `zim::Archive::getMediaCount` from libzim.
...
As libzim also changed the behavior of `zim::Archive::getArticleCount`,
we don't need the hack, and we don't need the code to parse `M/Counter`.
2022-11-02 13:15:47 +01:00
Veloman Yunkan
96cbd2bf26
kiwix::onlyAsNonEmptyMustacheValue()
2022-03-28 14:56:40 +02:00
Matthieu Gautier
b70c92cade
Move back used helper functions to the public API.
...
- Add docstring
- Move the declaration in kiwix namespace.
- Adapt our include to include the right headers.
2021-07-07 14:43:13 +02:00
Veloman Yunkan
cdacc0caf1
/catalog/v2/entries going through OPDSDumper
...
OPDSDumper sensed threats to its job security, so it lobbied to be
involved in handling the /catalog/v2 endpoints, too.
2021-06-08 20:37:00 +04:00
Veloman Yunkan
54b78eaf56
Moved gen_date_str() to tools/otherTools.cpp
2021-06-08 16:03:43 +04:00
Veloman Yunkan
0f8fe1f63f
Alternative implementation of parseMimetypeCounter()
2020-10-29 14:11:27 +04:00
Matthieu Gautier
08464f23bc
Better parsing of `M/Counter`
...
Mimetype may contain a parameters.
Then, the mimetype would be something like "text/html;foo=bar;foz=baz"
It will contains a `;` and `=` and it conflicts with the same operators
we use to separate the items in our list.
We have to use a more advanced algorithm which takes the context into
account.
Fix #416
2020-10-28 16:03:18 +01:00
Matthieu Gautier
ef42abea4b
Add some tests of `parseMimetypeCounter`
2020-10-28 14:44:23 +01:00
Matthieu Gautier
4407dd12bd
Move mimetypeCounter parsing in its own function.
2020-10-28 14:08:06 +01:00
Matthieu Gautier
7275f9b8e3
Move function to convert and use tags inside otherTools.
2020-01-30 17:48:56 +01:00
Matthieu Gautier
cbe8e20118
Fix include in otherTools.h
2019-08-11 10:19:48 +02:00
Matthieu Gautier
93af3aa2d1
Fix the language mapping.
...
The previous mapping was taken from an unknown (:/) source.
The new mapping is generated with a script taking
https://www.loc.gov/standards/iso639-2/php/code_list.php as source.
The source list is sanitized to keep only language for which we
(http://library.kiwix.org/ ) have content.
2019-03-05 17:53:37 +01:00
Matthieu Gautier
af7689e3e8
[API break] Move all the tools in the tools directory instead of common.
...
The `common` name is from the time where kiwix was only one repository
for all the project (android, desktop, server...).
Now we have split the repositories and kiwix-lib is the "common" repo,
the "common" directory is somehow nonsense.
2019-01-23 15:31:38 +01:00