iyear / tdl

📥 A Telegram toolkit written in Golang
https://docs.iyear.me/tdl
GNU Affero General Public License v3.0
4.24k stars 431 forks source link

[Bug] Does not continue due to incorrect file name #704

Closed dkaslsdfds closed 1 week ago

dkaslsdfds commented 1 month ago

Describe the bug

{"id":12345,"type":"message","file":"UserID:     11111111\nName:      qwerty.mkv"}
 - open downloads\9999999999_12345_UserID______11111111
Name_______qwerty.mkv.tmp: The filename, directory name, or volume label syntax is incorrect.

To Reproduce

tdl dl -f asd.json --skip-same

Expected behavior

skip or rename

Version

Version: 0.17.3 Commit: 6c382b8 Date: 2024-07-07T10:59:56Z

go1.21.11 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

No response

iyear commented 1 week ago

Use https://docs.iyear.me/tdl/guide/download/#name-template to customize your "safe" file name.