You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some links get a different file name. dlm skips a link whose file already exists, so a link renamed this way is downloaded again rather than skipped:
a link to a server-side script (.php, .asp, .aspx, .jsp, .jspx, .cgi, .pl, .cfm) is named by the server's Content-Disposition or redirect, and keeps its query in the name when the server gives none, so get.php?id=1 and get.php?id=2 no longer collide on get.php
a Content-Disposition name without an extension, such as README, is used instead of the name taken from the URL
names are capped at 250 bytes so that <name>.part fits the 255-byte filesystem limit; the name is cut and a short extension kept
Windows reserved names are escaped with an extension too: CON.txt becomes CON_.txt
Redirected and piped runs print the log on stdout, where it used to be dropped, so a failed link says which one and why
Added
A landing page at https://agourlay.github.io/dlm/, with install scripts for Linux and macOS (curl -fsSL https://agourlay.github.io/dlm/install.sh | sh) and Windows (irm https://raw.githubusercontent.com/agourlay/dlm/master/site/install.ps1 | iex)
Fixed
ctrl-c no longer waits for downloads sleeping through their retry backoff, which could take minutes
A redirect with a relative Location header no longer fails the download
A failed HEAD falls back to a ranged GET, not only a 405: presigned S3 and GCS URLs, which answer HEAD with 403, now download
A HEAD without Content-Length is followed by a ranged GET to learn the size, so those downloads can resume
A 206 answer counts as range support even without Accept-Ranges, and Content-Range: bytes 0-0/* no longer reads as a 1-byte file that fails every retry
Content-Disposition names: a ; inside quotes is kept, escapes are honoured, filename* accepts a language tag and ISO-8859-1, and filename is used when filename* cannot be decoded
A progress bar reused for a download of unknown size no longer shows the previous file's total
--random-user-agent sends the same agent on every request of a run
A clearer error for a URL with neither a path nor a query
Dependencies
base64, clap, console, futures-util, jiff, rand, reqwest, thiserror, tokio and tokio-util updated