v1.5.0 with --long-description

This commit is contained in:
renaud gaudin 2023-08-23 16:33:46 +00:00
parent 951241d8bf
commit 12dab25e61
No known key found for this signature in database
GPG Key ID: 447475A4CFBA2E24
2 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,13 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) (as of version 1.2.0).
## [Unreleased]
## [1.5.0] - 2023-08-23
### Added
- `--long-description` param
## [1.4.1] - 2023-08-23
### Changed

View File

@ -126,6 +126,7 @@ def zimit(args=None):
parser.add_argument("-u", "--url", help="The URL to start crawling from")
parser.add_argument("--title", help="ZIM title")
parser.add_argument("--description", help="ZIM description")
parser.add_argument("--long-description", help="ZIM long description metadata")
parser.add_argument(
"--urlFile",
@ -360,6 +361,10 @@ def zimit(args=None):
warc2zim_args.append("--description")
warc2zim_args.append(zimit_args.description)
if zimit_args.long_description:
warc2zim_args.append("--long-description")
warc2zim_args.append(zimit_args.long_description)
if zimit_args.zim_lang:
warc2zim_args.append("--lang")
warc2zim_args.append(zimit_args.zim_lang)