JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.01.2019, 09:44
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default packagizer Regex

Hi, I do download few tv shows and I would like to ask for help in terms of regex for jdownloader2. I tried to follow this thread but I am getting no where that much.

My filename is something like this "asdf_01_SD_ACB.mkv". I wanted to to populate it under same folder which named "asdf" only. Same goes for "few_02_SD_ACB.mkv" would go to folder named "few".

So far I set:
Code:
filename contains _\d+_SD_ACB

download directory <jd:orgpackagename:1>
package name <jd:orgfilename:1>
I get no hits from the above regex. What bothers me, what does it mean by "<jd:orgpackagename:1>" especially in download directory?

I've been sorting them manually under same folder for each series but now I wanted to take advantage of the automation process. Any help would be greatly appreciated.

Thank you in advance

Last edited by surfyrose; 20.01.2019 at 17:08.
Reply With Quote
  #2  
Old 21.01.2019, 13:49
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 503
Default

Quote:
Originally Posted by surfyrose View Post
My filename is something like this "asdf_01_SD_ACB.mkv". I wanted to to populate it under same folder which named "asdf" only. Same goes for "few_02_SD_ACB.mkv" would go to folder named "few".
Code:
File Name > contains > ([^_]+)_\d{2}_SD_ACB (Enable Regex)
...then set > Package Name > <jd:orgfilename:1>
Reply With Quote
  #3  
Old 21.01.2019, 21:53
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 48,190
Default

Thank you for helping out mgpai!

-psp-
__________________

Ad-free installers || Werbefreie Installer
Windows Setup<--JD2 BETA-->Linux Setup x86 || Linux Setup x64 || Mac Setup
-----=>Support Chat<=-----
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
  #4  
Old 24.01.2019, 11:45
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default

Thank you for the solution. I think the original regex works but I missed several characters to match it right out.

Thank you once again, it works.
Reply With Quote
  #5  
Old 10.02.2019, 10:48
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default

I want to adjust the regex, previously the regex were set to ([^_]+)_\d{2}_SD_ACB, but I noticed that before "ACB.mkv" would always be different. How can I adjust it so that it will ignore letters between episode number and "ACB.mkv"?

P.S
I did some tests under regexpal.com, this regex "([^_]+)_\d{2}_([^_]+)_(acb|ACB|ACB\.mkv)" does what I wanted but not compatible with jdownloader's regex

Last edited by surfyrose; 10.02.2019 at 11:01. Reason: did some online tester
Reply With Quote
  #6  
Old 10.02.2019, 11:18
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 503
Default

Code:
([^_]+)_\d{2}_.+_ACB
Reply With Quote
  #7  
Old 10.02.2019, 18:19
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default

Thank you again;)
Reply With Quote
  #8  
Old 11.05.2019, 04:31
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default

I wanted to move these downloaded files to another directory, I tried it on an exact location in
Code:
... then set > Download Directory "C:\foldername\desktop\folderdestination\<jd:orgfilename:1>
From the rule tests, it does state the download folder is the one I set above, but when downloading the actual file, it didn't move the file to where I've specified.
Reply With Quote
  #9  
Old 14.05.2019, 18:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,857
Default

Those rules are only applied while adding/crawling the links. Once the link is in list, no further rules are processed.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 17.05.2019, 09:31
surfyrose surfyrose is offline
Baby Loader
 
Join Date: Jan 2019
Posts: 6
Default

What if I added a new link? I left the set directory in the rules there, and adding new links still not moved to the target directory. It is okay if the old downloaded files has to be moved manually before these new rules has been added, but what about newer one after the new criteria?
Reply With Quote
  #11  
Old 17.05.2019, 10:05
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 503
Default

Quote:
Originally Posted by surfyrose View Post
I wanted to move these downloaded files to another directory..
Do you want to move the files after downloading them? In packagizer, for non-archive files, you can only set the "save to" directory. You cannot set a "move to" directory. For archive files however, it is possible to set a "move to" directory, but only for the extracted files.

For e.g., it is not possible to create a packagizer rule, which can first download files to x directory and later (when finished downloading) move it to y directory. You can use eventscripter for that.

If your requirement is different from the one mentioned above, please provide more details, with a screenshot of your packagizer rule.
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 08:54.
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 - 2019, Jelsoft Enterprises Ltd.