#1
|
|||
|
|||
![]()
So.. long time JD user here, never really got behind the packagizer. I tried some prolly stupid as hell regex stuff i threw together which didnt work as intended at all but i guess if you know your way around both of those monsters its gotta be easy.
I just want my tv shows to get downloaded/extracted/moved into the right show folder. All shows have "SXXEXX" (example: s07e01) in their file and package name. Since i cant packagize like a big boy im using the kiddo version which works but well.. i have to create one for every single damn show: you get the idea. can somebody please be so kind and explain me what i need todo so i can stop creating endless rules and folders by hand? :| Last edited by sucr4m; 13.07.2017 at 23:36. |
#2
|
||||
|
||||
![]()
you need to tell it how many times to repeat
\d for instance will only pick up 0-9 it wont pick up 00-99+ if you expect at least one or more its \d+ if you expect it for specific character count its \d{countvalue} for instance \d{2} = 00-99 for instance \d{1,2} = 0-99 for more assistance try _**External links are only visible to Support Staff** place in what you want to match it should highlight as you write your pattern
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
![]()
Your example matches on
s\d+e\d+ and don't forget to enable the regex checkbox
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
![]()
its not the match that wasnt working, its everything after that.
I have no idea how to tell it to create -> move it to a folder with the Show name without the SxxExx.xxxxx.xxx.xxxxp.xxx.xx following. It needs to be cut off from the folder. So that in the end my "Show.name.S02E01.1080p.hsomething.grp" goes into "x:\tvshows\Show name" I dont know if its even possible im just assuming there is a way to identify the spot right before the "SxxExx" and cut it. |
#5
|
||||
|
||||
![]()
you will need to use regex
put a listen range () before S\d+E\d+ use dynamic tag (select it via right click function)
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#6
|
|||
|
|||
![]() Quote:
i mean cant you PLEASE just finish this and explain by example? This is far from solved as it is :| Last edited by sucr4m; 14.07.2017 at 12:37. |
#7
|
||||
|
||||
![]()
package names should not start with /, as we typically strip chars
are you wanting to parse our provided package names or are you wanting to do via returned filename. I would say packagename is the correct way because it will mean _ and . are stripped and you wont have duplicate directories on harddrive (as in series.name and series_name for instance). rule name: "generic tv" package name: equals; "(.+)S\d+E\d+.+"; regex checkbox then set... Download Directory; "somepath\<jd:orgpackagename:1>" done raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#8
|
|||
|
|||
![]() Quote:
Controll pic so you can see i did what you said. |
#9
|
||||
|
||||
![]()
works fine with the test links I added. I didn't use contains though I used equals.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#10
|
|||
|
|||
![]()
Okay.. so i did some testing in the wild and from what i can say this works.
IF i: 1 disable the predifined subfolder by packagename rule + 2 put the regex "(.+)S\d+E\d+.+" on the filename instead of the package name Which is strange because all my other rules for single tvshows work with 1 BUT i indeed do use the filename in my other rules aswell. Soo, of course, it didnt put the files in their own subfolder. Why would i even think that with the rule disabled. The question is then, why do i need to disable the rule for the generic tvshow rule to work while the other single tv show rules work either way. D: okay. I put the rule at the end of the list again re-enabled the subfolder rule.. and now it "works". Needing to have the regex in the file name instead of the package name does put dots in the folder name which is kind of a nogo. Is there a way to read out/see the package name? Or rather, what exactly IS the package name? Im so confused right now. Last edited by sucr4m; 14.07.2017 at 15:28. |
#11
|
||||
|
||||
![]()
it processes rules based on order in the list. another rule can over ride based on the sequence in which is processed.
no worries raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#12
|
|||
|
|||
![]() prolly i misstook it with another show that already had a single rule, thats what i get for working and trying to fix my home stuff at once. so in the end no matter what i do it wont work over package name. Even if i type in the exact show name it wouldnt match the package name, as if i dont even have one. But that cant be either because then the subfolder rule wouldnt work. Maybe ill try it with a fresh install from JD2 since it seemed to work for you and i cant see anything im doing different. Last edited by sucr4m; 14.07.2017 at 16:54. |
#13
|
||||
|
||||
![]()
New Installation won't help and is not the reason why it doesn't work.
The answer is simple. DON'T use packagename ![]() You can only parse on package name if the plugin sets one! Only very few plugins set a package name. The auto package naming happens AFTER the packagizer rules! So at the time the rule is being processed, there is no package name to work on. The simple solution is: Use Filename ![]()
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
![]()
Well thats good to know, thanks.
For the 'simple' solution though.. if i use the filename is there a way to get the dots and underlines out of my file/folder names? And if its not possible through the packagizer might the event scripter be able todo something like that? Or am i doomed to keep creating rules for every single tv show im starting to watch? :'< |
#15
|
||||
|
||||
![]()
ohhh I did forget about that, sorry.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#16
|
||||
|
||||
![]()
Please provide some example links, then we can help better if we know what exactly you mean
![]()
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
![]()
No Problem, i blurred them out before because i thought that might be against some rules sharing links like that.
as you can see the links for tv shows have pretty much all the same pattern. My idea would have been pretty solid if they had package names without the dots inbetween. I didnt know it only gets generated after the packagizer does his work. In my show folders i got no subfolders for episodes or seasons so as long as it takes the show name for the folder to throw it in its fine. But im out of ideas. Couldnt find anythign here or on google even though im really suprised noone else thought of it before. Well hope dies last. Last edited by Jiaz; 18.07.2017 at 14:42. |
#18
|
||||
|
||||
![]()
Filename, contains
(.*?)\.?s\d+e\d+.* enable regex set packagename <jd:orgfilename:1>
__________________
JD-Dev & Server-Admin |
#19
|
||||
|
||||
![]()
at the moment it's not possible to remove the dots
__________________
JD-Dev & Server-Admin |
#20
|
||||
|
||||
![]()
the issue is with that you can get directories with . or _ or whitespace thus creates possibilities of duplicates.
catch 22. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 18.07.2017 at 16:45. |
![]() |
Thread Tools | |
Display Modes | |
|
|