#1
|
|||
|
|||
Long package/folder name -> Invalid download directory
Long package/folder name can cause invalid download directory error
i want jdownloader to detect if folder name is long than for example 50 characters, than it crops to 50 char is it possible to create a rule like that ? Thank you |
#2
|
||||
|
||||
Hi,
if you're using Windows there is a possible workaround (see "Hint for Windows users"). Apart from that: Yes you could use a Packagizer rule to shorten paths/packagenames/filenames.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
||||
|
||||
I'm no fan of auto handling this situation because it will easily result in unwanted behaviour or more issues. Also it depends on OS/filesystem what the max complete path/segment length may be.
What OS are you using? Can you provide example links? In case a plugin causes too long names, we should check that plugin in specific.
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
Quote:
i use "create sub folder by package name" rule and it cause folder's long name **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
How about changing package name to not include the tags and set the tags in comment of the package?
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Quote:
actually i think we need only the first tag in package name, and the rests we can have in comment like you said |
#8
|
||||
|
||||
The first tag could theoretically also be very long
Is it fine the way it is now or do you want further changes? -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#9
|
|||
|
|||
Quote:
I tried and it's much better now but if it's possible ,trim the tag if the package name are longer than a value ,such as 200 chars would be better |
#10
|
||||
|
||||
Please use our Packagizer feature to so that as path-limits only apply for certain but not all OS'.
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#11
|
|||
|
|||
Quote:
actually i'm using Packagizer Im not sure it already solve this problem , but i haven't see any exceed limit filepath from the last update till this time |
#12
|
||||
|
||||
Probably not as you'd need to setup a Regular Expression for this to work and I do not know what kind of Packagizer rule you're using atm.
...but if it's working fine for you now you do not have to change anything. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#13
|
|||
|
|||
Quote:
can you please tell me how to add that Regex rule to trim the package name if it 's longer than a value ,such as 200 chars Thanks |
#14
|
||||
|
||||
See other rules as example.
Use regex101.com to test your regular expressions. Use something like: Code:
(.{200,}) -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#15
|
|||
|
|||
Thank you for the hint , i will try it
|
#16
|
||||
|
||||
@navmesh: In case you need further help with this or a rule, just let us know!
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
I see, thank you for the help
|
20.08.2021, 14:48 |
Student im ersten Jahr |
Message deleted by pspzockerscene.
|
#18
|
|||
|
|||
Hi,
I am also looking for a way to set a rule to limit the download path or the filename length as I am also running into this issue frequently now. Primarily I need a way to shorten the filenames to i.e 100 chars. Any help setting up a packagizer rule for this is appreciated. |
#19
|
|||
|
|||
Example:
Quote:
|
#20
|
||||
|
||||
@LongDongGold:
in case you need further help, just ask @mgpai: thanks again for your fast help
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|