#1
|
|||
|
|||
How to automatically crop filenames ?
jdownloader can't download some files for me and shows "Invalid download directory" in status of that files ... cause filenames are too long they really are :D Are there any easy "bulk" way to make them just shorter... just save first 20 or so symbols (letters and numbers) and cut off everything else ? I was trying to find "regular expression" for such task... but i just can't find one anywhere
|
#2
|
||||
|
||||
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
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
Thanks But this will not work with already added files ? Only with new ones ?
|
#4
|
||||
|
||||
I'm sorry but it will only work on new added links. you can use copy/paste to readd them
select them in download list, and switch to linkgrabber and paste it there
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
In the end it made it Thanks for the help. Works perfectly. if only there was option to just have error (like the one about renaming files with same name) "file name is too long, crop it to the shorter possible version" that would be easier Anyway i'm very happy now.
|
#6
|
||||
|
||||
I have this issue on my screen and in future JDownloader will auto crop filenames if needed
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Hi friends,
This rule is not working for **External links are only visible to Support Staff****External links are only visible to Support Staff** Actually any packagizer rule for filenaming is not working for this website. How should we limit filename length for this site? (say limit to first 64 characters) Thanks. |
#8
|
||||
|
||||
Works fine for me.
Filename contains - '((.{9}).*)' without ' - enable regex set FileName <jd:orgfilename:2>.<jd:orgfiletype>
__________________
JD-Dev & Server-Admin |
#9
|
||||
|
||||
if you want only to match for those links
then you should include sourceurl(s) contains - xbooru.com
__________________
JD-Dev & Server-Admin |
#10
|
|||
|
|||
Quote:
Code:
// Send links to linkgrabber and remove from the download list // Trigger: Downloadlist Contextmenu Button Pressed if (name == "Send to LinkGrabber") { var links = dlSelection.getDownloadLinks(); var urls = []; for (i = 0; i < links.length; i++) { var link = links[i]; urls.push(link.getUrl()); link.remove(); } addLinks() } // Funtions function addLinks() { callAPI("linkgrabberv2", "addLinks", { "links": urls.join(" ") }) } Last edited by madcowpig; 15.01.2017 at 14:02. Reason: Misspelled the word, "select". |
#11
|
|||
|
|||
My problem is again link checking issue. It was disabled, and packagizer rules creates issues when it is disabled. I enabled it and then restarted JD. Now it is working fine.
|
#12
|
||||
|
||||
Thanks for the feedback!
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
Opps, not working:
Could you please check this link: **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#14
|
||||
|
||||
works perfectly fine for me
__________________
JD-Dev & Server-Admin |
#15
|
||||
|
||||
What exactly does not work for you?
__________________
JD-Dev & Server-Admin |
#16
|
|||
|
|||
JD grabs pictures with tag "digimon" where it should grab pictures with tag "digimon_adventure"
**External links are only visible to Support Staff****External links are only visible to Support Staff** Above link acts like **External links are only visible to Support Staff****External links are only visible to Support Staff** which is wrong. JD ignores "_adventure" part of the original link. |
#17
|
||||
|
||||
fixed with next update. Thanks for explanation and example links!
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
Hi again,
It seems there is another problem. For this link I want to limit filename length to 64. **External links are only visible to Support Staff****External links are only visible to Support Staff** In my packagizer rule: Limit to 9 works: ((.{9}).*) But limit to 64 deletes all filename string: ((.{64}).*) Any comment? |
#19
|
||||
|
||||
What exactly do you mean by *deletes all filename string* ?
__________________
JD-Dev & Server-Admin |
#20
|
||||
|
||||
I've also updated plugin, please wait for next plugin update
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|