Closed wolffparkinson closed 3 weeks ago
I guess this filename might be invalid on Linux. Try changing the template
flag to {{ .MessageID }}
to verify.
Colons :
are not a valid symbol in linux file name.
Changing the template flag to {{ .MessageID }}
works.
But {{ replace .FileName
:`_
}}` should work.
After trying a few combinations, looks like have to add forward slash (\
) before each backtick (`) in the template to escape the backticks, else linux terminal will misbehave.
Working template :
--template "[{{ .MessageID }}] {{ replace .FileName \`/\` \`_\` \`:\` \`_\` \`*\` \`_\` \`?\` \`\` \`<\` \`_\` \`>\` \`_\` \`|\` \`_\` \`\\\` \`_\` }}"
Describe the bug
Throws
invalid argument
while downloading a file.Command :
To Reproduce
Private channel.
Expected behavior
Should download the file
Version
Version: 0.17.4 Commit: c63abd1 Date: 2024-09-08T15:56:41Z
go1.21.13 linux/amd64
Which OS are you running tdl on?
Linux
Additional context
No response