Mandown

Latest version: v1.10.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

1.3.2

Bug fixes
- Mandown no longer crashes when you download any webtoons.com comic

1.3.1

This is a patch release to fix several bugs and make Mandown more robust (i.e., tests)!

Bug fixes
- Added the new domain `chapmanganato.com` for MangaNato/MangaKakalot (4a57e18813acaff5bc2784464f0ad6618c08d049)
- Correctly added newlines instead of smushing text together in ReadComicOnline descriptions (d43476706f3e8f1dd317af64564ae6500e0bb33b)
- Switched Webtoons.com metadata detection to use HTML scraping instead of RSS (55110995c4e8b6e131efbdc6b0d8a08c4a1a754f)

1.3.0

This one's a big release — happy belated new year!

CLI changes

- You can now directly convert between comic formats! The list of supported formats is still the same (CBZ, EPUB, PDF), but you can **interconvert** between all of them!
- e.g., `mandown convert epub /path/to/comic.cbz`
- `mandown get --processing-options` has been renamed to `mandown get --process` for brevity

API changes

- :warning: Mandown's converter library has been spun off into [its own library](https://github.com/potatoeggy/comicon), which is **far** more flexible! As such, Mandown now depends on the new `comicon` package, and `mandown.get_converter` is no longer accessible. (#58)
- `mandown.convert` and `mandown.convert_progress` now **only** accept paths to other comics instead of taking a `BaseComic` object. In addition, the two functions also accept paths to **comic files**, using the Comicon backend to convert between different comic formats!
- e.g, `mandown.convert("/path/to/comic.cbz", "epub")`

Bug fixes

- Fixed a bug where MangaDex chapters were placed in reverse order (53 by austin-zeng)
- Fixed a bug where short comics would crash on PDF conversion (56 by austin-zeng)
- Fixed a bug where some comics would have the wrong order when converted to PDF (56 by austin-zeng)
- Downloading from MangaDex no longer infinitely hangs if something went wrong (f0636804176ab9c1f7ff07e365841e00bf9b52e0)
- Fixed a bug where duplicate chapter names from MangaDex would cause the chapters to overwrite each other (932dd90c97dec70f6e4bd259007443305c98049e)
- Fixed a bug where some comics would place the cover image randomly after converting to CBZ (8f3fe7e479a6430e43c279e099a3de881326ff1a)

Misc

- :warning: Mandown is now once again licensed under the **AGPLv3**!

1.2.0

Lots of changes, including some breaking ones.

API changes
- :warning: `mandown.convert(..., convert_to, ...)` has been renamed to `mandown.convert(..., to, ...)` (0516b365bb98ece040ca68a5a5c42b88dd723695)
- :warning: `mandown.init_parse_comic()` now only accepts a `BaseComic` instead of a `str` URL. You can mimick legacy behaviour by calling `mandown.query(url)` to get the equivalent `BaseComic`.
- `mandown.init_parse_comic()` can download the cover image upon initialisation if `download_cover=True` is passed (0d622d545a847fe7542e9dcc6b370c216b27cf87)
- ***Many*** documented functions are now exposed through the Mandown API: (52)
- `mandown.ConvertFormats` is an Enum that lists all of the supported formats
- `mandown.get_converter` returns the class for a given ConvertFormat
- `mandown.ProcessConfig` is mostly used for the `resize` process op
- `mandown.ProcessOps` is an Enum that lists all of the supported operations
- `mandown.Processor` is the class doing the heavy lifting to process things
- `mandown.BaseComic`, `mandown.BaseMetadata`, and `mandown.BaseChapter` are often passed around Mandown, and now it's easier to instantiate them directly
- `mandown.MD_METADATA_FILE` is the name of `md-metadata.json` if you ever want to use it in a future-compatible way
- `mandown.ProcessOptionMismatchError` is raised if you don't know how to use `resize` properly
- `mandown.SupportedProfiles` is a **union type alias** for each of the possible processing device profiles
- `mandown.all_profiles` is a dict of all supported profiles and their properties
- `mandown.process` and `mandown.process_progress` now accept a `ProcessConfig` object to specify the options for the `resize` operation, which was also added to `ProcessOps` (51)
- e.g., `mandown.process("/path", ["resize"], ProcessConfig(output_profile="kindle"))`
- A valid `ProcessConfig` with one of `output_profile` or `target_size` set is **required** for the `resize` operation, which will throw `ProcessOptionMismatchError`, `ValueError`, and `AttributeError` if not set up properly.
- A list of all profiles was added and exposed in `mandown.all_profiles`
- `mandown.convert` and `mandown.convert_progress` now accept `remove_after: bool = False` to delete the original folder after conversion (50)

CLI changes
- The `--download-cover` (shorthand `-d`) flag was added for `mandown init-metadata` to mimick API behaviour and make the UX more smooth (0d622d545a847fe7542e9dcc6b370c216b27cf87)
- **`mandown init-metadata` now defaults to an interactive prompt.** Use `mandown init-metadata --help` for a look at the regular options. (36f83153b8d49a0383a4f9e7288209bfe9d19908)
- The `--remove-after` (shorthand `-r`) flag was added for `mandown get --convert` and `mandown convert` with the same effect as in the API (50)
- Resizing images was added to the `process` and `mandown get -p` command with one of the following flags required (`--target-size` / `-z` or `--profile` / `-r`) (51, 52)
- e.g., `mandown process resize --profile kindle` to resize images for the original Kindle!
- e.g., `mandown process resize --target-size 480 640` to resize images to 480x640!
- `mandown --list-profiles` was added to list all of the device profiles
- A *lot* of nicer error and help messages!

Bug fixes
Y'know, there's probably at least one bug that's fixed. Lots more introduced, too.

Misc
- Lots of documentation was added in the `/docs` folder and functions are now as documented as ever thanks to Copilot!

1.1.1

Feature changes

- Expose updating and saving comics automatically through the API (8f6ded4dd4dae9088a4fc541be0cfddccc1b33f4)

Bug fixes

- Fixed CBZ comic conversion always crashing (48)
- Switched to `filetype` to detect image types as `imghdr` is deprecated
- Support Python 3.11 by updating `PySide6`

1.1.0

Feature changes
Technically none, but the license was changed to **GPLv2 (or, if you'd like, any later version)** from **LGPL-3.0-only**. Because Mandown uses code from a GPLv2-only project, it is effectively GPLv2-only until the copied code is removed.

Bug fixes
- Fixed readcomiconline.li (6c2413decd7efcdf349b4d40b8e019d81160c2e0)
- Added genre detection for webtoons.com (d8fb07f43d170b577ebe4dd5073031d3d1aaabf5)

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.