-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Can't donwload files if title or subtitle is too long #215
Comments
my pull request (#216) implements truncating the base-filename at 230 bytes and adds |
@devvythelopper |
The problem with the other solution is, that it might cut off the suffixes The problem with my solution is, that it does not check for actual filesystem limits. I suppose one should add |
there is one drawback I've thought of btw: say a user successfully has downloaded an audiobook that has a very long filename, say 235 bytes. Adding your extensions the filenames may be between 240 and 250 bytes. if we cut the filenames off now at 230, this audiobook will be redownloaded if the user specifies Or you leave it as it is now for simplicity's sake, and you'll be safe if in the future some longer suffixes might be added. I personally would leave it as it is now. It's good enough and users will adjust. |
I've just come across an audiobook where the filename for the
aaxc
file is well over the usual limit (256 bytes).Most filesystems, and the linux internals, usually have a maximum length for a filename (full path).
The limit is usually 256 bytes.
Apparently it's not difficult for the automatically generated filename to exceed that.
Once that happens, every file operations fails with
[Errno 36] File name too long
.This is a very low level error, not easy to circumvent.
two options here:
As it stands there are definitely audiobooks not downloadable as of now.
Thank you.
The text was updated successfully, but these errors were encountered: