JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 25.03.2017, 19:57
Osakawa Osakawa is offline
Vacuum Cleaner
 
Join Date: Jan 2016
Posts: 15
Default Is It Possible to Limit The Files' Name?

Hello guys,

I'm recently downloanding youtube videos, and i realized something. Some videos with long name isn't copied another path or deleted because of windows character limit, there are few ways to copy or delete but it is a little bit hard. So, can i limit the files' names in jdownloander like 150 characters before i download?
Reply With Quote
  #2  
Old 26.03.2017, 03:07
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

you can do it yes
package customiser rule
filename contains = (.{0,150}) (regex)
then
jd:originalfilename:1 (use dyn tags available from right click)

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 26.03.2017, 11:54
Osakawa Osakawa is offline
Vacuum Cleaner
 
Join Date: Jan 2016
Posts: 15
Default

Quote:
Originally Posted by raztoki View Post
you can do it yes
package customiser rule
filename contains = (.{0,150}) (regex)
then
jd:originalfilename:1 (use dyn tags available from right click)

raztoki
Thank you, it worked but i have 2 different problems now. You can see in the attachment. The main folder name doesn't change, i did the character limit 5 for test, everything limited with 5 letter thats fine but as you can see the main folder name didn't change. Second when i limit file char. the filename extension also disappears, can i prevent it?
Attached Thumbnails
ScreenShot317.jpg  

Last edited by Osakawa; 26.03.2017 at 12:01.
Reply With Quote
  #4  
Old 26.03.2017, 12:20
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

package customer rules work in sequence of order and only when items enter linkgrabber.

use tag original file type tag ?
you might have to adjust the original regular expression I gave you not to listen to the previous extension otherwise you end up with .mp4.mp4 for example.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 08.04.2017, 01:52
Osakawa Osakawa is offline
Vacuum Cleaner
 
Join Date: Jan 2016
Posts: 15
Default

Quote:
Originally Posted by raztoki View Post
package customer rules work in sequence of order and only when items enter linkgrabber.

use tag original file type tag ?
you might have to adjust the original regular expression I gave you not to listen to the previous extension otherwise you end up with .mp4.mp4 for example.
thank you
Reply With Quote
Reply


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 09:30.
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 - 2024, Jelsoft Enterprises Ltd.