Skip to content

[Bug] tdl-export.json was not downloaded in ID order #1128

@Zig-VS-TypeScript-VS

Description

@Zig-VS-TypeScript-VS

Describe the bug

I used Notepad++ to compare the IDs being downloaded by the TDL terminal for tdl-export.json, the .txt, and the .epub files, and they are not being downloaded in order.

Because it does not download in ID order.

  • Because the earlier IDs were not downloaded.

epub
961110 -> D:\88

txt
516933 -> D:\88

To Reproduce

  1. join https://t.me/happylibrary >>> View discussion >>> join.

tdl-export.json

tdl dl -f D:\88\tdl-export.json --template "{{ filenamify .FileName }}" -i epub --skip-same --takeout --pool 0 -d D:\88\ -t 6 -l 7

All files will be downloaded to 'D:\88\' dir
书库小说讨论群[NSFW](1285760920):961110 -> D:\88~ ... done! [1.11 MB in 7.752s; 146.33 KB/s]

It should start downloading from the latest to the earliest ID.

{"id":965682,"type":"message","file":"复兴之路 - wanglong - 266CHS.epub"},
{"id":93,"type":"message","file":"宰执天下-cuslaa.epub"}

D:\88>tdl dl -f D:\88\tdl-export.json --template "{{ filenamify .FileName }}" -i txt --skip-same --takeout --pool 0 -d D:\88\ -t 6 -l 7
All files will be downloaded to 'D:\88\' dir
书库小说讨论群[NSFW](1285760920):516933 -> D:\88~ ... done! [666.13 KB in 4.775s; 138.09 KB/s]

It should start downloading from the latest to the earliest ID.

{"id":966782,"type":"message","file":"sxsy_org发现清冷系校花偷喝我飞机杯里O液的这件事_作者:_FXY.txt"}
{"id":53,"type":"message","file":"大奉打更人番外(7篇)_soushu555_org_搜书吧网址.txt"}]

Expected behavior

It should start downloading from the newest or oldest ID.

.epub

{"id":93,"type":"message","file":"宰执天下-cuslaa.epub"}

{"id":965682,"type":"message","file":"复兴之路 - wanglong - 266CHS.epub"}

.txt

{"id":966782,"type":"message","file":"sxsy_org发现清冷系校花偷喝我飞机杯里O液的这件事_作者:_FXY.txt"}

{"id":53,"type":"message","file":"大奉打更人番外(7篇)_soushu555_org_搜书吧网址.txt"}]

Version

Version: 0.20.1
Commit: 742da1b
Date: 2025-12-14T16:19:18Z

go1.23.10 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

tdl-export.json

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions