-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add arguments to make_zim_file and relax dependencies constraints #147
Conversation
1a38020
to
91addfe
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #147 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 32 32
Lines 1399 1399
Branches 240 240
=========================================
Hits 1399 1399 ☔ View full report in Codecov by Sentry. |
91addfe
to
ed997e4
Compare
Add support for `disable_metadata_checks`, `ignore_duplicates` and `compression` arguments in `make_zim_file` function ("zimwritefs-mode")
ed997e4
to
128a2b0
Compare
Nota: this has already been tested locally to work fine with ted scraper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if there's a reason behind those additions or if you were just filling a gap
I was just filling a gap, since it was intentional I will remove this right now. |
Change done and first comment updated to reflect the new PR content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the ignore_duplicates
? We do want this one. Especially on old scrapers still using this to bundle assets
Arf, I added two args to fill the gap and you made two remarks, so I misread them as being linked to these two args. I did not realized your first remark was about the |
After discussion:
After some thought, I think that we have to expose |
👍 ; as long as it defaults to True :) |
But someone cautious would not be using the zimwriterfs mode 😅 |
Does your 👍 means you've reviewed this PR and I can merge or that you've approved my proposition? |
Yes |
Changes
disable_metadata_checks
,ignore_duplicates
andarguments incompression
make_zim_file
function ("zimwritefs-mode")disable_metadata_checks
when adding this functionality ... while it is the first (and maybe even main) use case ...ignore_duplicates
inmake_zim_file
function ("zimwritefs-mode")True
, since it most cases this is what we want (we usually do not run a deduplication function before-hand on files stored in the filesystemI intend to release this as 3.3.2 as soon as it is merged since we want to proceed with TED upgrade to benefit from new encoder presets.