diff --git a/README.md b/README.md index dd20f3d9f2..4c8eed658f 100644 --- a/README.md +++ b/README.md @@ -201,6 +201,18 @@ tdl dl -u https://t.me/tdl/1 --skip-same tdl dl -u https://t.me/tdl/1 -d /path/to/dir ``` +- Download files with custom order: + +> **Note** +> Different order will affect resuming download + +```shell +# download files in descending order(from newest to oldest) +tdl dl -f result.json --desc +# Default is ascending order +tdl dl -f result.json +``` + - Download files with extension filters: > **Note** @@ -241,7 +253,7 @@ tdl dl --debug --ntp pool.ntp.org \ -u https://t.me/tdl/1 -u https://t.me/tdl/2 \ -f result1.json -f result2.json \ --rewrite-ext --skip-same -i jpg,png \ --d /path/to/dir \ +-d /path/to/dir --desc \ -t 8 -s 262144 -l 4 ``` diff --git a/docs/command/tdl_dl.md b/docs/command/tdl_dl.md index b7a04f25ea..9ab8ef5486 100644 --- a/docs/command/tdl_dl.md +++ b/docs/command/tdl_dl.md @@ -9,6 +9,7 @@ tdl dl [flags] ### Options ``` + --desc download files from the newest to the oldest ones (may affect resume download) -d, --dir string specify the download directory. If the directory does not exist, it will be created automatically (default "downloads") -e, --exclude strings exclude the specified file extensions, and only judge by file name, not file MIME. Example: -e png,jpg -f, --file strings official client exported files