Skip to content

Conversation

@olaf-mandel
Copy link
Contributor

Add an option to also download the following media:

  • series thumbnail
  • series banner (only for Originals, not for Canvas)
  • series background (only for Originals, not for Canvas)
  • chapter thumbnail
  • background music as TS files

Depends on #43

The default behaviour is to name all files as `<basename>.jpg` on the
assumption that all images are downloaded with type `image/jpeg`. But
this is not necessarily true, images may also be downloaded as
`image/png` in which case the file-name is wrong.

To fix this, add a new choice `native` to the option `--images-format`
and have it detect the actual downloaded image type from the
`Content-Type` header. Make this new choice the (changed) default
choice. Keep the choices `jpg` and `png` but enforce conversion in both
cases if the downloaded image does not match the desired format.
When calling for a download again with a `dest`-directory filled by a
previous download, minimize the number of network requests made:

* don't redownload already present images
* don't redownload already present chapter pages: this uses a heuristic
  that detects the presence of a chapter `<N>` by the presence of an
  image called `<N>_0*.<format>`, i.e. a partial chapter download will
  not be retried if any such image is present.

Not affected are the downloads of the series description and of the
chapter page used to get the information about the chapters: those still
happen every time because the heuristic to skip those would be too
fragile.
Add an option to also download the following media:

 * series thumbnail
 * series banner (only for Originals, not for Canvas)
 * series background (only for Originals, not for Canvas)
 * chapter thumbnail
 * background music as TS files
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.

1 participant