Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new zim::Archive::getMediaCount from libzim. #836

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

mgautierfr
Copy link
Member

Adapt libkiwix to use new libzim API introduced in openzim/libzim#730

@stale
Copy link

stale bot commented Nov 2, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Nov 2, 2022
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`.
@kelson42
Copy link
Collaborator

kelson42 commented Nov 2, 2022

@veloman-yunkan Can you please review this PR?

@stale stale bot removed the stale label Nov 2, 2022
@kelson42 kelson42 added this to the 12.0.0 milestone Nov 2, 2022
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 71.20% // Head: 70.87% // Decreases project coverage by -0.33% ⚠️

Coverage data is based on head (8cec014) compared to base (bf9aeff).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #836      +/-   ##
==========================================
- Coverage   71.20%   70.87%   -0.34%     
==========================================
  Files          53       53              
  Lines        3716     3667      -49     
  Branches     2062     2035      -27     
==========================================
- Hits         2646     2599      -47     
+ Misses       1068     1066       -2     
  Partials        2        2              
Impacted Files Coverage Δ
src/tools/archiveTools.cpp 84.90% <ø> (-1.77%) ⬇️
src/tools/otherTools.cpp 77.90% <ø> (-5.28%) ⬇️
src/tools/otherTools.h 85.71% <ø> (ø)
src/book.cpp 87.83% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kelson42
Copy link
Collaborator

kelson42 commented Nov 3, 2022

@mgautierfr CI macOS does not pass, looks like a bug to me.

@kelson42 kelson42 merged commit ec31882 into master Nov 7, 2022
@kelson42 kelson42 deleted the media_count_libzim branch November 7, 2022 11:52
mgautierfr added a commit that referenced this pull request Nov 30, 2022
* [API Break] Remove wrapper around libzim (@mgautierfr #789)
* Allow kiwix-serve to use custom resource files (@veloman-yunkan #779)
* Properly handle searchProtocolPrefix when rendering search result (@veloman-yunkan #823)
* Prevent search on multi language content (@veloman-yunkan #838)
* Use new `zim::Archive::getMediaCount` from libzim (@mgautierfr #836)
* Catalog:
 - Include tags in free text catalog search (@veloman-yunkan #802)
 - Illustration's url is based on book's uuid (@veloman-yunkan #804)
 - Cleanup of the opds-dumper (@veloman-yunkan #829)
 - Allow filtering of catalog content using multiple languages (@veloman-yunkan #841)
 - Make opds-dumper respect the namemapper (@mgautierfr #837)
* Server:
 - Correctly handle `\` in suggestion json generation (@veloman-yunkan #843)
 - Better http caching (@veloman-yunkan #833)
 - Make `/suggest` endpoint thread-safe (@veloman-yunkan #834)
 - Better redirection of main page (@veloman-yunkan #827)
 - Remove jquery (@mgautierfr @juuz0 #796)
 - Better Viewer of zim content :
   . Introduce `/content` endpoints (@veloman-yunkan #806)
   . Switch to iframe based content viewer (@veloman-yunkan #716)
 - Optimised design of the welcome page:
   . Alignement (@juuz0 @kelson42 #786)
   . Exit download modal on pressing escape key (@Juzz0 #800)
   . Add favicon for different devices (@Juzz0 #805)
   . Fix auto hidding of the toolbar (@veloman-yunkan #821)
   . Allow user to filter books by tags in the front page (@juuz0 #711)
* CI :
  - Trigger CI on pull_request (@kelson42 #791)
  - Drop Ubuntu Impish packaging (@legoktm #825)
  - Add Ubuntu Kinetic packaging (@legoktm #801)
* Testing:
  - Test ICULanguageInfo (@veloman-yunkan #795)
  - Introduce fake `test` language to test i18n (@veloman-yunkan #848)
* Fix documentation (@kelson42 #816)
* Udpate translation (#787 #839 #847)
@mgautierfr mgautierfr mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants