Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate filenames longer than 255 characters #40

Open
spencerhughes opened this issue Jan 22, 2020 · 1 comment
Open

Truncate filenames longer than 255 characters #40

spencerhughes opened this issue Jan 22, 2020 · 1 comment

Comments

@spencerhughes
Copy link

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.

@mlj
Copy link
Owner

mlj commented Jan 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants