Skip to content
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

export-title: add forgotten series title #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

olaf-mandel
Copy link
Contributor

Add the series title / series name to the data exported by --export-texts which was forgotten before.

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 the series title / series name to the data exported by
`--export-texts` which was forgotten before.
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