Feat/handle mangadex - #25
Merged
Merged
Conversation
This implementation doesn't handle decimal chapters (e.g 2.5) yet.
Uses endpoints described at api.mangadex.org A different request header will be used accordingly to the documentation
Add multi-range selection and display available chapter ranges. Unify CLI and TUI chapter filtering around RangeSelection.
Store discovered entries and validate multi-range selections before download. Pass unified RangeSelection directly to the download workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds full MangaDex support to goweeb and improves chapter/volume range handling across both the CLI and TUI.
MangaDex introduces a few constraints that existing providers did not have, such as language-based scan selection, provider-specific image request headers, and non-contiguous chapter availability. This branch adds the required provider implementation while also making range selection more generic and reusable for future providers.
Changes
MangaDex provider
Flexible chapter and volume ranges
Add support for non-contiguous available ranges.
Display available chapter/volume ranges instead of only the total entry count.
Add multi-range input support, including formats such as:
101-1010--101-10,20-301,5,10Automatically skip unavailable entries inside a requested range instead of treating gaps as errors.
Share the same range parsing and filtering logic between the CLI and TUI.
Improve CLI help output for the new range syntax.
Update the TUI to validate selections against the actual discovered entries before starting a download.
Notes
MangaDex chapters that are only linked to external services such as MangaPlus are currently ignored. This provider only downloads chapters whose pages are hosted through MangaDex/MangaDex@Home.
Decimal chapter numbers such as
3.5are also not handled yet and are currently skipped.Both limitations can be addressed separately in future updates.