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

Support RFC5854 metalink file output #20

Closed
hofmand opened this issue Apr 11, 2020 · 8 comments
Closed

Support RFC5854 metalink file output #20

hofmand opened this issue Apr 11, 2020 · 8 comments

Comments

@hofmand
Copy link

hofmand commented Apr 11, 2020

Metalink files are XML files that provide more information than just the filename, such as file sizes, dates, and cryptographic hashes. Aria2c can read these files directly. You can add the statistics for an OpenDirectory in an XML comment at the top, consolidating the metadata and data into a single file.

You might not want estimated file sizes in the file unless the user chooses --exact-file-sizes but again you can add the estimated file sizes as comments. When you get downloading working, you could calculate a hash and add that in to help someone else's aria2c to verify their download, or even as a way to fingerprint your own files as a way to detect future file corruption.

And XML files give you the ability to transform them into any format you want just by writing a stylesheet.

@KoalaBear84
Copy link
Owner

KoalaBear84 commented Apr 11, 2020

Hi hofmand,

Ah, I never heard of it. That would be something nice. I definitely want to check this out. Hopefully 'soon'.

Thanks!

Reference: https://en.wikipedia.org/wiki/Metalink

@Chaphasilor
Copy link
Contributor

I think this format would be an even better approach than #46, right?
@MCOfficer

@MCOfficer
Copy link
Contributor

Right, aria2c actually supports metalink. Good spot.

@Chaphasilor
Copy link
Contributor

wget and JDownloader also support metalink, which is nice 😁

This was referenced Jan 29, 2021
@Chaphasilor
Copy link
Contributor

@KoalaBear84
Copy link
Owner

@Chaphasilor Spreading the news while it's happening!

Hmm. So that is a blow for the support for it.

@Chaphasilor
Copy link
Contributor

I mean in all honesty anything related to ODs isn't really secure, but we should keep it in mind.
Curl isn't a downloader, and wget, aria2, etc. have supported it for quite some time now, so it might still be a good idea to support it, depending on how easy it is to generate the metalink output.
It most likely isn't a security concern for ODD itself...

@KoalaBear84
Copy link
Owner

KoalaBear84 commented Jan 15, 2023

Sadly support for it is already removed in curl and wget, so now there isn't any support anymore anywhere 🙃

curl/curl#7176

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

No branches or pull requests

4 participants