0.0
No commit activity in last 3 years
No release in over 3 years
Class to format Metalink 4 / rfc5854 / .meta4 XML
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

metalink4-ruby

Class to format Metalink 4 / rfc5854 / .meta4 XML

All rfc5854 metadata is supported, as well as Chunk checksumming, for detecting errors early on bad internet connections - see piece_size and piece_count options.

All internally generated checksums are sha-256. Other checksum types must be calculates externally and passed in.

No code taken from timsjoberg/metalink-ruby.

Gem Version

Installation

Requirements:

  • Ruby >= 1.9.3
$ gem install metalink4-ruby

Generation Examples

Please see https://github.com/Sudrien/metalink4-ruby/blob/main/test/test.rb

Download Examples

metalink4-ruby 1.0.0 allows for the parsing of external meta4 files, but does not support downloading and verifying checksums, as metalink supports the listing of many protocols.

A presumed outdated list of clients is available at http://www.metalinker.org/implementation.html

Here is a partial list for convienece of easily scriptable programs for convienence.

curl

As of 7.78.0, curl removed Metalink support, rather than support a 'failure' over a 'warning' when checksums did not match.

See: https://curl.se/docs/CVE-2021-22922.html

aria2c example (recommended)

(Note: It is possible to compile binaries without metalink support)

Show file list

aria2c test/1MB.meta4 -S

Download single file on that list

aria2c test/1MB.meta4 --select-file=1

Check integrity of any files on disk instead of overwriting

aria2c test/1MB.meta4 --check-integrity=true

More:

wget example (partial support)

(Note: It is possible to compile binaries without metalink support)

Download all files? 1MB.meta4.#1 a result, not obvious how to get correct filename

wget --input-metalink=test/1MB.meta4

Download single file on that list, supposedly

wget --input-metalink=test/1MB.meta4 --metalink-index=1

More: