Skip to content

Commit

Permalink
docs(dl): support custom download order
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Feb 3, 2023
1 parent 0cd0d85 commit d25f79d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down Expand Up @@ -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
```

Expand Down
1 change: 1 addition & 0 deletions docs/command/tdl_dl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d25f79d

Please sign in to comment.