#41
|
|||
|
|||
More info would be necessary - how the limit would be applied, to the filename alone or to filename and path?
Best would be notification when starting download. I have quite a lot of long names and I already detect and shorten them manually, but for this I need the complete name without truncations to keep the important parts even at the end of filename (variant descriptions for YouTube come to mind as a common example), so it should be a notification. I would prefer to avoid forced loss of information even before I have a chance to edit the auto-generated strings, and yet I would like to be warned that the path is still too long. The limit itself should be configurable: even if target path would be within the limit, it is possible file would be later moved to another above the limit, so changing the limit could help as a form of prediction. Last edited by goratnik; 08.07.2024 at 12:51. |
#42
|
||||
|
||||
Only to the filename.
We will never touch the download path. That would be too risky. More info: - Limit is only applied to the filename - Limit is only applied if a previous wirte-test to the path with the existing filename has failed [through an initial write-test, it is then clear that writing a shorter filename is possible so the issue is the long name, not a permission problem] - Filename will be cut at the end, similar to how browsers are doing it and of course, file-extension will be preserved That was not planned but I'll think about it. Quote:
Maybe the best would be to have a dialog similar to "do you want to overwrite the existing file" along with a "don't ask again" dialoge. You are free to already test this feature, see: https://support.jdownloader.org/know...up-ide-eclipse Real life example of a file with a name that is too long for a default Windows installation: Code:
drive.google.com/file/d/1R8fpgJBb1OKx2ghqOQBC6KI5hvDNgGHJ/view Fyi: With a lot of the filename related changes, we did orientate ourselfes on the browsers' behavior though of course there are more thigns to consider in JDownloader such as extensions of multipart archive files which we need to make sure not to break. Quote:
I'd love to get feedback from you after actually testing it in the dev build. You do not(!) need to be a coder to be able to setup and run said version.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#43
|
|||
|
|||
Quote:
Using your own Google Drive link,
My understanding was that the goal is to extend browsers with additional control thanks to existence of LinkGrabber step, which is not present in browsers. A step that would allow selecting possible variants for download, collect additional information, build informative names according to strict scheme instead of just picking a random string thrown by the server not expecting for anyone to see it. In other words, control unimaginable for download manager built into any browser. One of such steps would be an ability to freely choose which parts (characters) of auto-generated filename should be retained; for example, I put quite a lot of information into YouTube filenames, which I consider mandatory and usually give moderate lengths, but used tags contain also video name and channel name, which can be 100 and 50 characters long, respectively. Such long values can happen at any time, I may miss them, but the least I could expect is a space for correction without the need for redoing work of LinkGrabber to find values of missing tags, which might be not necessarily easy to access. I do have to occassionally fix filesystem, so a warning system would be welcomed by me. Edit: to further elaborate, I don't have any problem writing excessively long paths on my Windows 10, JDownloader (and Capture One on a side note) doesn't give a squeak, files are safe and complete, that are other applications that fail due to expectation of paths fitting within 255* characters... A bit of annoying tinkering is necessary, usually moving up the folder tree is enough to resolve my cases, but I'm not in despair over long names enough to kill them instantly, I just see this feature as a chance for a soft warning. Without peeking into trial implementations, path length limit is predictable and can be calculated in advance, so the way I see this would be similar to Duplicate links:
Edit2: can we split the discussion, please? This is no longer about illegal characters, but paths that are not even illegal, just undesirable. Edit3: I have checked in Powershell and I have a message here that could be translated to "length of fully qualified file name has to be lower than 260 characters, while length of folder name lower than 248 characters". Last edited by goratnik; 08.07.2024 at 20:56. Reason: Sorry for skipping commit messages! |
#44
|
||||
|
||||
Quote:
There are still ppl using Fat32. You download from linux to windows network share and so have to deal with filename limitation of different OS than JDownloader is running on. Also a question of portability as you can download the files on linux and maybe want to move them later to windows filesystem and may fail because file/path names are too long so maybe the max file/path length should be a config like AUTO, custom, Predefined values... Sure! Feel free to open new thread about this topic and continue conversation over there
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 08.07.2024 at 23:39. |
#45
|
|||
|
|||
Quote:
Can we consider FAT16 as well? Quote:
Last edited by goratnik; 09.07.2024 at 02:02. Reason: Fixing emoticon |
#46
|
||||
|
||||
Reads as you're mocking me but I'm dead serious, we still have ppl with that old filesystem in use. Of course I would not respect those few users for major decisions but just wanted to point out that different filesystems have different filelength. eg
Quote:
__________________
JD-Dev & Server-Admin |
#47
|
||||||
|
||||||
Quote:
We can talk about this once the first change is done but a change which can possibly alter users set paths is definitely not planned! Adding to this: Using the already existing features of JDownloader, you can already alter parts of the path and also put a length limitation in place. Just a theoretical note here: If this was about the path and filename, it would make this significantly more complex. Here is my rough plans for now:
Quote:
I thought it was clear that JDownloader is s different tool with different use cases. For example nowdays most of all users will typically use one default download path for browser based downloads. In JDownloader however, this is obviously different. This means that for browsers it is significantly easier to shorten filenames than it will be for JDownloader. Quote:
Your rough idea though is not too bad. Similar to the "remove bad chars rpleace map", I can imagine adding a "shorten filename replace map" which will be appended first and after this, auto truncating can be applied if needed. Prividing the ability to define characters/patterns which can be removed from "too long" filenames sounds like a smart move to me. Quote:
Quote:
While this might be ment as a joke, one of the hidden features of JDownloader is its vast compatibility, even to older systems. Quote:
A quick sidenote: If you have removed the Windows path limit for your system, you will never have to deal with this problem either way. We've also mentioned this here: https://support.jdownloader.org/know...load-directory I prefer letters over smileys so what does this mean? If you want, you can open a new thread and just in case you ment to say this: Sure I can also move parts of existing threads into a new thread. To me, using this thread is fine. Interested users will eventually find it via Google even though the title implies that it is about another topic. I could also just update the title.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 11.07.2024 at 16:44. Reason: Fixed typo |
Thread Tools | |
Display Modes | |
|
|