mirror of
https://github.com/aria2/aria2.git
synced 2025-01-24 10:41:18 +00:00
3880a5f71b
Added Metalink4 support. Currently, name attribute of metalink::metaurl is ignored and multi-file torrent cannot be used with Metalink4. * doc/aria2c.1.txt * src/DownloadHandlerConstants.cc * src/ExpatMetalinkProcessor.cc * src/Makefile.am * src/Metalink2RequestGroup.cc * src/MetalinkEntry.cc * src/MetalinkEntry.h * src/MetalinkParserController.cc * src/MetalinkParserController.h * src/MetalinkParserState.h * src/MetalinkParserStateImpl.cc * src/MetalinkParserStateImpl.h * src/MetalinkParserStateMachine.cc * src/MetalinkParserStateMachine.h * src/MetalinkParserStateV3Impl.cc * src/MetalinkParserStateV3Impl.h * src/MetalinkParserStateV4Impl.cc * src/MetalinkParserStateV4Impl.h * src/MetalinkResource.cc * src/MetalinkResource.h * src/Metalinker.cc * src/RequestGroup.cc * src/RequestGroup.h * src/XML2SAXMetalinkProcessor.cc * src/messageDigest.cc * src/util.cc * src/util.h * test/Makefile.am * test/MetalinkEntryTest.cc * test/MetalinkParserControllerTest.cc * test/MetalinkProcessorTest.cc * test/MetalinkerTest.cc * test/UtilTest.cc * test/metalink4-attrs.xml * test/metalink4-dirtraversal.xml * test/metalink4.xml
12 lines
666 B
XML
12 lines
666 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
|
|
<file name="priority/example.ext">
|
|
<url location="de" priority="0">ftp://ftp.example.com/example.ext</url>
|
|
<url location="fr" priority="">http://example.com/example.ext</url>
|
|
<url location="jp" priority="1000000">http://example.org/example.ext</url>
|
|
<metaurl mediatype="torrent" priority="0">http://example.com/example.ext.torrent</metaurl>
|
|
<metaurl mediatype="torrent" priority="">http://example.org/example.ext.torrent</metaurl>
|
|
<metaurl mediatype="torrent" priority="1000000">http://example.net/example.ext.torrent</metaurl>
|
|
</file>
|
|
</metalink>
|