Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@LuRenJiasWorld
Copy link
Contributor

@LuRenJiasWorld LuRenJiasWorld commented Mar 26, 2025

When using {{ .FileCaption }} in filename templates, some long caption would cause download failure due to file system length limit.

So I add a second optional argument to filenamify method, to limit string length to a value that would not exceed the limit.

Usage:

tdl dl -f ./tdl-export.json --pool 16 -t 4 -l 1 --delay 3s --skip-same --template '{{ .MessageDate }}_{{ filenamify .FileCaption 128 }}_{{ .MessageID }}_{{ .FileName }}'

Since this is my first time contributing to this project, I’d appreciate your direct feedback if any adjustments are needed in my changes!

@LuRenJiasWorld LuRenJiasWorld requested a review from iyear as a code owner March 26, 2025 16:00
Copy link
Owner

@iyear iyear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@iyear iyear merged commit d4278ba into iyear:master May 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants