bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH 20/25] New option --metalink-index to process Metalink


From: Matthew White
Subject: [Bug-wget] [PATCH 20/25] New option --metalink-index to process Metalink application/metalink4+xml
Date: Sat, 10 Sep 2016 12:59:24 +0200

[Coverity Scan is ok, make syntax-check is ok, make check-valgrind is ok, 
contrib/check-hard is ok]

This introduces the new option --metalink-index=NUMBER, for auto-processing of 
Metalink files contained in a Metalink/HTTP header answer.

--metalink-index=<inf|0|N> saves the user from manually (cli) 1. choose, 2. 
download, 3. process the metalink file.

e.g.:
$ wget --metalink-over-http \
       --metalink-index=inf \
       [--trust-server-names \]
       <url answering with a Metalink/HTTP header>

--metalink-index=inf allows the auto-processing of the first good Metalink file 
contained in the Metalink/HTTP header answer.

--metalink-index=N allows the auto-processing of the N* indexed Metalink file 
contained in the Metalink/HTTP header answer.

  * N refers to the ordinal number of the Metalink (metaurl) Link once the 
Metalink/HTTP's header links have been sorted by priority.

    Link: <http://example.com/file1.ext.meta4>; rel=describedby; 
type="application/metalink4+xml"; pri=7
    Link: <http://example.com/file2.ext.meta4>; rel=describedby; 
type="application/metalink4+xml"; pri=5

  In the above case scenario, N=1 means file2.ext.meta4, N=2 means 
file1.ext.meta4, N=0 or N=inf means the first good one.

Regards,
Matthew

-- 
Matthew White <address@hidden>

Attachment: 0020-New-option-metalink-index-to-process-Metalink-applic.patch
Description: Text Data

Attachment: pgpWpuJa5Oav7.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]