JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.07.2021, 12:22
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default 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
Reply With Quote
  #2  
Old 30.07.2021, 13:32
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,937
Default

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
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #3  
Old 30.07.2021, 15:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,263
Default

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
Reply With Quote
  #4  
Old 30.07.2021, 16:16
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by Jiaz View Post
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.
Thank you, I'm using windows 10 64 bits, here is one example
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**
Reply With Quote
  #5  
Old 30.07.2021, 16:23
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by pspzockerscene View Post
Hi,
if you're using Windows there is a **External links are only visible to Support Staff**... (see "Hint for Windows users").

Apart from that: Yes you could use a **External links are only visible to Support Staff**... to shorten paths/packagenames/filenames.
Thank you, anyone please give a hint sothat i can get the length of package name and trim it by rule?
Reply With Quote
  #6  
Old 30.07.2021, 16:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,263
Default

How about changing package name to not include the tags and set the tags in comment of the package?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 31.07.2021, 00:32
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by Jiaz View Post
How about changing package name to not include the tags and set the tags in comment of the package?
That's great bro,
actually i think we need only the first tag in package name, and the rests we can have in comment like you said
Reply With Quote
  #8  
Old 02.08.2021, 12:06
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,937
Default

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
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #9  
Old 07.08.2021, 09:58
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by pspzockerscene View Post
The first tag could theoretically also be very long

Is it fine the way it is now or do you want further changes?

-psp-
Thank you very much for the help,
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
Reply With Quote
  #10  
Old 09.08.2021, 14:29
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,937
Default

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
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #11  
Old 10.08.2021, 12:36
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by pspzockerscene View Post
Please use our Packagizer feature to so that as path-limits only apply for certain but not all OS'.

-psp-
Thank you
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
Reply With Quote
  #12  
Old 10.08.2021, 12:41
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,937
Default

Quote:
Originally Posted by navmesh View Post
Im not sure it already solve this problem
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
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #13  
Old 11.08.2021, 07:07
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by pspzockerscene View Post
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-
Im using these packagizer rules : "create subfolder by package name" and "adopt folder structure"
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
Reply With Quote
  #14  
Old 11.08.2021, 11:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,937
Default

See other rules as example.
Use regex101.com to test your regular expressions.
Use something like:
Code:
(.{200,})
To catch names with 200- or more chars.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #15  
Old 13.08.2021, 12:08
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

Quote:
Originally Posted by pspzockerscene View Post
See other rules as example.
Use regex101.com to test your regular expressions.
Use something like:
Code:
(.{200,})
To catch names with 200- or more chars.

-psp-
Thank you for the hint , i will try it
Reply With Quote
  #16  
Old 18.08.2021, 16:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,263
Default

@navmesh: In case you need further help with this or a rule, just let us know!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 20.08.2021, 12:11
navmesh navmesh is offline
Super Loader
 
Join Date: Nov 2016
Posts: 27
Default

I see, thank you for the help
Reply With Quote
Old 20.08.2021, 13:48
Student im ersten Jahr
Message deleted by pspzockerscene.
  #18  
Old 20.08.2021, 22:02
LongDongGold LongDongGold is offline
Junior Loader
 
Join Date: Apr 2020
Posts: 11
Default

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.
Reply With Quote
  #19  
Old 21.08.2021, 13:54
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,321
Default

Quote:
Originally Posted by LongDongGold View Post
... shorten the filenames to i.e 100 chars.
Example:
Quote:
Originally Posted by Jiaz View Post
Create a packagizer rule
Enable *Match on any File or Link...* - First Checkbox
Enable Filename - contains - ((.{9}).*) - enable regex checkbox at right side
...then set
Enable Filename - <jd:orgfilename:2>.<jd:orgfiletype>

This will limit filenames to max length of 9 you can change number yourself to your needs
Reply With Quote
  #20  
Old 24.08.2021, 15:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,263
Default

@LongDongGold:
in case you need further help, just ask

@mgpai: thanks again for your fast help
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 19:18.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.