Skip to content

Hide the override download url feature - #260

Open
Catizard wants to merge 1 commit into
seraxis:mainfrom
Catizard:refactor/hide_override_download_url_feature
Open

Hide the override download url feature#260
Catizard wants to merge 1 commit into
seraxis:mainfrom
Catizard:refactor/hide_override_download_url_feature

Conversation

@Catizard

Copy link
Copy Markdown
Collaborator

This commit cuts the configurable option overrideDownloadURL from launcher. This will make it:

  • Unconfigurable
  • No longer takes effect

This reason I coded this feature was because wriggle is designed to serve a 'direct' download endpoint, compared to what ginger and konmai does: they require client to "ask if the package was presenting on the server" before "giving the direct download link back". As wriggle was the only download source we can use before, such a feature that allows you tweak the download source is good enough to adapt the issues like server domain changes. No need to say it actually happens a serveral times.

However, such a design cannot be used on ginger and konmai because they require client to ask before downloading, and the response data structure from server varies. Also this feature is more hard to understand for casual users, we have seen how many times this misleads the users trying to use this feature to switch to konmai or ginger. As mentioned before, this design is not capable with these servers.

So in this commit it's getting removed, but not entirely: some of the inner implementation is preserved. This is trying to not make a big change instantly.

This commit cuts the configurable option `overrideDownloadURL` from
launcher. This will make it:

- Unconfigurable
- No longer takes effect

This reason I coded this feature was because `wriggle` is designed to
serve a 'direct' download endpoint, compared to what `ginger` and
`konmai` does: they require client to "ask if the package was presenting
on the server" before "giving the direct download link back". As wriggle
was the only download source we can use before, such a feature that
allows you tweak the download source is good enough to adapt the issues
like server domain changes. No need to say it actually happens a
serveral times.

However, such a design cannot be used on `ginger` and `konmai` because
they require client to ask before downloading, and the response data
structure from server varies. Also this feature is more hard to
understand for casual users, we have seen how many times this misleads
the users trying to use this feature to switch to `konmai` or `ginger`.
As mentioned before, this design is not capable with these servers.

So in this commit it's getting removed, but not entirely: some of the
inner implementation is preserved. This is trying to not make a big
change instantly.
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