"http" could download from multiple sources #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is it a bug or a feature request?
A feature request
Describe what happens
Let's say I have an
audiospec
whoseurl
ishttp://dl1.us.example.com/blah.mp3
.It might be the case that I already know that if this is a valid URL, then also
http://dl2.us.example.com/blah.mp3
andhttp://dl2.fr.mirror.example.com/blah.mp3
are (or could be) valid URLs, because I already know how the mirror network works.As a sysadmin, I might want to configure larigira so that it knows how to rewrite URLs, both changing URLs (ie: canonicalizing them) and expanding a single URL to multiple URLs.
Ideally, those URLs could even be used to download in parallel, making it faster. At least having them as a fallback would be great.
Implementation ideas
Of course some function that can download a file from a list of URLs is needed.
As for the user-side of it, it could work this way:
LARIGIRA_AUDIOGEN_HTTP_REWRITEURL
) to a path of an executable fileWe could let the user have a custom http downloader, with a well-defined interface. This would automatically allow this feature to be downloaded (inside your custom script), but will also allow more feature to be implemented by the sysadmin: