Releases: openzim/python-scraperlib
Releases · openzim/python-scraperlib
3.2.0
3.1.1
3.1.0
3.0.0
zim.creator.Creator
and zim.filesystem.make_zim_file
Added
zim.creator.Creator.config_metadata
method (returning Self) exposing all mandatory Metdata, all standard ones and allowing extra text metdadata.zim.creator.Creator.config_dev_metadata
method setting stub metdata for all mandatory ones (allowing overrides)zim.metadata
module with a list of per-metadata validation functionszim.creator.Creator.validate_metadata
(called onstart
) to verify metadata respects the spec (and its recommendations)zim.filesystem.make_zim_file
accepts a new optionallong_description
param.i18n.is_valid_iso_639_3
to check ISO-639-3 codesimage.probing.is_valid_image
to check Image format and size
Changed
zim.creator.Creator
main_path
argument now mandatoryzim.creator.Creator.start
now fails on missing required or invalid metadatazim.creator.Creator.add_metadata
nows enforces validation checkszim.filesystem.make_zim_file
renamed itsfavicon_path
param toillustration_path
zim.creator.Creator.config_indexing
language
argument now optionnal whenindexing=False
zim.creator.Creator.config_indexing
now validateslanguage
is ISO- 639-3 whenindexing=True
Removed
zim.creator.Creator.update_metadata
. See.config_metadata()
insteadzim.creator.Creator
language
argument. See.config_metadata()
insteadzim.creator.Creator
keyword arguments. See.config_metadata()
insteadzim.creator.Creator.add_default_illustration
. See.config_metadata()
insteadzim.archibe.Archive.media_counter
(deprecated in2.0.0
)
2.1.0
Added
zim.creator.Creator(language=)
can be specified asList[str]
.["eng", "fra"]
,["eng"]
,"eng,fra"
, "eng" are all valid values.
Changed
- Fixed
zim.providers.URLProvider
returning incomplete streams under certain circumstances (from openzim/kolibri#40) - Fixed
zim.creator.Creator
not supporting multiple values in for Language metadata, as required by the spec
2.0.0
- Using pylibzim v2.1.0 (using libzim 8.1.0)
Added
- [libzim]
Entry.get_redirect_entry()
- [libzim]
Item.get_indexdata()
to implement custom IndexData per entry (writer) - [libzim]
Archive.media_count
Changed
- [libzim]
Archive.article_count
updated to match scraperlib's version Archive.article_counter
now deprecated. Now returnsArchive.article_count
Archive.media_counter
now deprecated. Now returnsArchive.media_count
Removed
- [libzim]
lzma
compression algorithm
1.8.0
1.7.0
Added
zim.Creator
now supportsignore_duplicates: bool
parameter to
prevent duplicates from raising exceptionszim.Creator.add_item
,zim.Creator.add_redirect
andzim.Creator.add_item_for
now supports aduplicate_ok: bool
parameter to prevent an exception
should this item/redirect be a duplicate