-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Reddit downloads can still fail due to path length even though it should be getting truncated #873
Comments
This one is reddit and still fails even though the temp files are not present. Seems youtube-dl might not be getting a shortened filename to use as temporary files.
|
I've reduced the There is no good general solution for the "filename length problem", which is why I haven't really tried to implement something. You can find a workable solution for filesystems using UTF-8 in #814, but that doesn't work for filesystems with a different filename encoding or filename length restriction. |
Thanks for doing this but I don't want you to have to keep doing this. I've hit into a couple more with imgur for whatever reason. The file length alone hit over 270 characters. Don't ask me why. Forgive me for asking but how exactly do I override the formatting used by the extractor so that I might be able to impose a per extractor limit? |
A minimal config for Reddit with the current default filename/directory format strings would look something like {
"extractor": {
"reddit": {
"filename": "{id} {title[:220]}.{extension}",
"directory": ["{category}", "{subreddit}"]
}
}
} |
Side note on a closed ticket. Trying to limit imgur filenames. Can you tell me what ?_// does in the format string for it? To me it just seems to be adding a _ in front of title however I can't determine if it does anything else and I'm hoping you can provide some insight? |
This is a conditional expression, i.e. if Lines 496 to 503 in b62ea72
|
Ok. With that said is there a way to include that and limit the length at the same time? I can only seem to apply one or the other. |
|
As subject suggests. There is a temp file downloaded and when that file is saved it is too long. So even if the resulting file would have been proper it still fails the whole process in the end.
Example posting: https://www.reddit.com/r/araragi/comments/gm7ud5/i_have_almost_finished_the_anime_and_i_have/
OS release is Ubuntu 19.10 running on Proxmox as a container.
EDIT: I worked around this by disabling the creation of part files in the downloader however there should be a check to see if it could even be saved and skipped if it can't. I actually tried to move it to /tmp and the file was still going to be too long.
The text was updated successfully, but these errors were encountered: