#1
|
|||
|
|||
pattern config for more better linkcrawler rule
for now I am using this and it works fine
Code:
"name" : null, "packageNamePattern" : "<title>(.+)</title>", "passwordPattern" : null, "pattern" : "**External links are only visible to Support Staff**, **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** how to change pattern to make all those additional links also work with this single linkcrawler rule? plus: as you can see I am using title for packageNamePattern how to add before or after title the exact letters from ../category/ ../anothercategory/ ../category2nd/ ../cat-third/ (...have a nice weekend) |
#2
|
||||
|
||||
1. We can't help without read life examples.
2. Learn regex here: regex101.com.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
Quote:
here you are: **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#4
|
||||
|
||||
I'll provide one regular expression for this link for you. You will need to learn the rest yourself.
Code:
https?://[^/]+/sex-anzeigen/[a-z0-9\\-]+/[a-z0-9\\-]+-[0-9]+$ pastebin.com/raw/1ApJC8tc --> See regex101.com
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
Quote:
thank you very much! how to add some part of url slug to folder name where I use <title> </title>? (by the way: to add filetype with <jd:append> using packagizer is great...) |
#6
|
||||
|
||||
@verheiratet1952: for that I'd recommend using the packagizer and create a rule that parses the wanted slug from url and add/set package name.
You want to use slug as package name or sort of combination of both?
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Quote:
Code:
"packageNamePattern" : "<title>(.+)</title>", if not using some PHP parser with JSON, but using JD it is nice to have everything I need inside folder name... for example: **External links are only visible to Support Staff****External links are only visible to Support Staff** packageNamePattern should be title+digits at the end or title+url slug part or to play around with h1 instead of title or whatever... being more flexible with packageNamePattern... is there any variables given to parse url slug? ( with varibale I talk about something like <jd:append> ) |
#8
|
||||
|
||||
@verheiratet1952: I would recommend to use pattern for sourceURL and then build the package name manually. or use packageNamePattern and then use append to add information from sourceURL matches.
Code:
sourceURL - contains - https?://[^/]*ladies.de/[^/]*/[^/]*/[^/]*-(\d+) set sourceURL: <jd:source:1>
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|