castget icon indicating copy to clipboard operation
castget copied to clipboard

Truncate filenames longer than 255 characters

Open spencerhughes opened this issue 6 years ago • 1 comments

When using the filename template option, castget does not automatically truncate filenames longer than the Linux maximum filename length. This can cause issues, especially when using the %(title) option in the filename template, because many podcasts have very long titles. Either having it automatically truncate the names, or having an option that allows me to set the maximum file name length would solve the problem.

spencerhughes avatar Jan 22 '20 17:01 spencerhughes

Agreed that some kind of truncation would make sense. We already strip some bad characters from filenames in sanitise_filename() in src/filenames.c, which would be a sensible place to add this.

mlj avatar Jan 26 '20 00:01 mlj