Matthieu Gautier
f8522fb26e
Remove getNetworkInterfaces and getBestPublicIp function.
...
They are not used at all and the windows version need some extra libs
that complexify the code.
Remove them for now. If it happens that they are needed, we will readd
them.
2019-04-04 17:00:45 +02:00
Matthieu Gautier
938e2a81c1
Rewrite makeTmpDirectory to not use Uuid methods on windows.
...
`UuidCreate`, `UuidToString` and `RpcStringFree` need special library
on windows. Lets not use them.
2019-04-04 16:11:36 +02:00
Matthieu Gautier
d9e72685ba
Merge pull request #210 from kiwix/no_error_message
...
Remove error message when trying to opening a wrong zim file.
2019-04-02 16:02:47 +02:00
Matthieu Gautier
d40982f760
Remove error message when trying to opening a wrong zim file.
...
The library should not print a message.
Fix kiwix/kiwix-tools#235
2019-04-02 15:28:46 +02:00
Matthieu Gautier
42b7692f9b
Merge pull request #208 from kiwix/new_version
...
Version 4.1.0
2019-03-19 16:35:57 +01:00
Matthieu Gautier
cd654b9cae
Version 4.1.0
2019-03-19 16:26:14 +01:00
Matthieu Gautier
15dafcaa80
Force use of meson 0.49.2
2019-03-19 15:27:03 +01:00
Matthieu Gautier
f71f2935e0
Merge pull request #204 from kiwix/library_filter_tag
...
Allow the library to be filtered by tags.
2019-03-07 17:19:31 +01:00
Matthieu Gautier
c6254d9504
Allow the library to be filtered by tags.
...
This add an argument to `listBooksIds` to filter by tags.
So, this is an API break.
2019-03-07 17:08:39 +01:00
Matthieu Gautier
f1a046757e
Merge pull request #203 from kiwix/fix_lang_mapping
...
Fix the language mapping.
2019-03-05 18:43:00 +01: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
336a987bb2
Merge pull request #202 from kiwix/update_readme_mustache
...
Add information about mustache dependency in the README.
2019-03-04 17:03:56 +01:00
Matthieu Gautier
72b4af4d65
Add information about mustache dependency in the README.
2019-03-04 14:26:40 +01:00
Matthieu Gautier
9aa1c65d7a
Merge pull request #200 from kiwix/new_version
...
New version 4.0.1
2019-02-22 11:18:55 +01:00
Matthieu Gautier
ad6b20a530
New version 4.0.1
2019-02-22 10:29:16 +01:00
Matthieu Gautier
c1d04cc5b5
Merge pull request #199 from kiwix/fix_warning_android
...
Correctly initialize variable.
2019-02-19 14:15:20 +01:00
Matthieu Gautier
af9734c87f
Correctly initialize variable.
2019-02-19 14:05:37 +01:00
Matthieu Gautier
a7a0798f99
Merge pull request #198 from kiwix/use_correct_dep_archive
...
Use new xz archive.
2019-02-19 14:05:08 +01:00
Matthieu Gautier
0154fdd190
Use new xz archive.
2019-02-19 13:31:26 +01:00
Matthieu Gautier
788d16ec01
Merge pull request #197 from kiwix/ensure_path_abs
...
Ensure path abs
2019-02-07 15:55:51 +01:00
Matthieu Gautier
35d812a5f7
Ensure the book's `path` is absolute.
...
We must use absolute path whenever possible.
Relative path has sense only related to the "interaction" with the user
(current directory, library location, ...).
2019-02-07 15:22:33 +01:00
Matthieu Gautier
432f9c30a3
Remove unused variable url.
2019-02-07 15:20:18 +01:00
Matthieu Gautier
ab94ac0ee8
Merge pull request #195 from kiwix/new_version
...
New version
2019-01-29 11:38:06 +01:00
Matthieu Gautier
1ac6d4cb20
New version 4.0.0
2019-01-29 11:29:59 +01:00
Matthieu Gautier
26b61a2d09
We do not need the exact version 0.43.0 for meson.
2019-01-29 11:29:59 +01:00
Matthieu Gautier
aab88c9022
Merge pull request #194 from kiwix/common2tools
...
[API break] Move all the tools in the tools directory instead of common.
2019-01-23 16:55:09 +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
Matthieu Gautier
ecb2a80baf
Merge pull request #193 from kiwix/fix_uninitalized
...
Correctly initialize retVal.
2019-01-23 12:05:34 +01:00
Matthieu Gautier
b996a2877c
Correctly initialize retVal.
2019-01-23 11:51:30 +01:00
Matthieu Gautier
a98594c084
Merge pull request #192 from kiwix/workaround_depend_files
...
Workaround a bug in meson 0.43.0 about custom_target's depend_files option.
2019-01-10 16:08:24 +01:00
Matthieu Gautier
b9696dceac
Workaround a bug in meson 0.43.0 about custom_target's depend_files option.
...
There is a bug in meson 0.43.0 about the option depend_files
(mesonbuild/meson#2633 )
By using the `files('search_result.tmpl')`, we workaround the bug and
have everything working whatever the meson version is.
2019-01-10 15:59:42 +01:00
Matthieu Gautier
550b6df414
Merge pull request #191 from kiwix/mustache_template
...
Move the templating system to mustache instead of ctpp2.
2019-01-10 11:45:56 +01:00
Matthieu Gautier
be498c3b16
Make the string Tools functions available in android.
2019-01-09 18:29:20 +01:00
Matthieu Gautier
92c9a47a0d
Move the templating system to mustache instead of ctpp2.
...
Mustache templating system is a bit simpler than ctpp2 and ctpp2 is no
more maintained (see #189 ).
We are moving to the kainjow's Mustache project
(https://github.com/kainjow/Mustache ).
It simplify a lot our system has it is header only and we don't have to
precompile the template.
Fix #21
2019-01-09 18:28:48 +01:00
Matthieu Gautier
c73ac9f2cd
Merge pull request #190 from kiwix/no_external_index
...
Remove support for external index.
2019-01-08 16:13:54 +01:00
Matthieu Gautier
5159d985c6
Remove support for external index.
...
This feature is considered obsolete for a while.
In fact, it was already not supported since June 2018 as we were compiling
xapian without the chert backend support.
Assume that we don't support it and remove it from the code.
See kiwix/kiwix-tools#245
This is a API break. library.xml files will still work but the indexPath
and indexType will be dropped silently from the file.
2019-01-07 16:47:08 +01:00
Matthieu Gautier
cb98f11ddc
Merge pull request #188 from kiwix/create_directory
...
Create the datadirectory to not fail to write the aria2 session file.
2018-12-14 16:44:46 +01:00
Matthieu Gautier
29046bfc05
Create the datadirectory to not fail to write the aria2 session file.
...
Fix kiwix/kiwix-desktop#69
2018-12-14 15:24:13 +01:00
Matthieu Gautier
dd5dd14ec9
Merge pull request #187 from kiwix/new_version
...
new version 3.1.1
2018-12-13 18:05:35 +01:00
Matthieu Gautier
49a606a043
new version 3.1.1
2018-12-13 17:29:21 +01:00
Matthieu Gautier
b641f7b116
Merge pull request #186 from kiwix/fix_library
...
Fix library
2018-12-11 17:08:30 +01:00
Matthieu Gautier
e6d7ba06fb
Convert the standard opds date to our format (YYYY-MM-DD)
2018-12-11 17:02:02 +01:00
Matthieu Gautier
0f812c6584
The update entry of the book should be the date of the book, not the feed.
2018-12-11 17:01:33 +01:00
Matthieu Gautier
716c87dd20
Remove duplicate language attribute in the libxml dumper.
...
Silly copy/paste.
2018-12-11 17:00:56 +01:00
Matthieu Gautier
090c4f5970
Merge pull request #185 from kiwix/new_version
...
new version 3.1.0
2018-12-03 11:21:15 +01:00
Matthieu Gautier
cf28af4439
new version 3.1.0
2018-12-02 15:56:00 +01:00
Matthieu Gautier
6777bfeecf
Merge pull request #184 from kiwix/bookmarks
...
Bookmarks
2018-12-02 15:52:52 +01:00
Matthieu Gautier
12498e2cfe
Add bookmarks support.
...
The library now contains (simple) methods to handle bookmarks.
The bookmark are stored in a separate xml file.
Bookmark are mainly a couple (`zimId`, `articleUrl`).
However, in the xml we store a bit more data :
- The article's title (for display)
- The book's title, lang and date (for potential update of zim files)
2018-12-02 15:47:29 +01:00
Matthieu Gautier
b5ce60a627
Move the dump of the library into library.xml in a specific class.
...
The same way the dump into a opds feed is in a specific class.
2018-11-28 12:09:28 +01:00
Matthieu Gautier
c9cc58973c
Merge pull request #183 from kiwix/book_faviconUrl
...
Add Book::getFaviconUrl
2018-11-15 17:53:24 +01:00