#1
|
||||
|
||||
multiple deepPatterns in linkcrawler rules
Is it possible to create a set(two) of deepPattern in linkcrawler rules?
I tried in the following method but it did not work for both, it only accepts 'one or the other' 'not both'. By default the first one works unless I disable it so that the second works instead. [ { },{ } ] |
#2
|
||||
|
||||
scratch that, I just needed the | between the first and second adjacent DP.
|
#3
|
||||
|
||||
Exactly.
Multiple patterns as a json array is not possible but you should be able to make it work just by using a big Regular Expression -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#4
|
||||
|
||||
The | works for multiple/several deepPatterns from 'one pattern' but what if one were to require a second separate pattern and a deepPattern to go along with that pattern? Would the | apply as well? or is this limited to one single pattern/domain only?
|
#5
|
||||
|
||||
single pattern is only possible far as im aware. Guess you could try multiples.
if you primary pattern is for different, and you need different deepPatterns for each you are better off with two seperate rules than trying to combine
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#6
|
||||
|
||||
So one can have two separate rules? I didn't think this was possible, which is why i was inquiring about a 2nd pattern with its own deepPattern rule, if that is the case, than yes it would be better to have two separate rules.
|
#7
|
||||
|
||||
rule pattern deepPattern
1 unique whateveryouwant 2 unique whateveryouwant I wasn't sure, just a guess. so I recommended you test otherwise you have have multiple deep patterns per rule. just to confirm either way. if you can only have a single deepPattern then would need to combine a|b
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 03.03.2020 at 15:41. |
#8
|
||||
|
||||
I was thinking of something like:
Code:
[ { "enabled" : true, "maxDecryptDepth" : 1, "name" : "site1", "pattern" : "pattern1.for.site1", "rule" : "DEEPDECRYPT", "packageNamePattern" : null, "deepPattern" : "(deeppattern.for.pattern1)" },{ "enabled" : true, "maxDecryptDepth" : 1, "name" : "site2", "pattern" : "pattern2.for.site2", "rule" : "DEEPDECRYPT", "packageNamePattern" : null, "deepPattern" : "(deeppattern.for.pattern2)" } ] |
#9
|
||||
|
||||
I have a feeling if it works like other plugins it only enters the first rule. so as long as pattern1 is different from pattern2 it will work. I dont use linkcrawling rules much, just created test rules when it first came out.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#10
|
||||
|
||||
Right, when I tested using the same pattern for both, it only entered the 1st-pattern by default as you said. I will test with two unique/different pattern/deeppaterns just to see results.
|
Thread Tools | |
Display Modes | |
|
|