#1
|
|||
|
|||
linkgrabber filter help
Hi,
This is very confusing so please be gentle. How do I : 1. Make a filter that will allow ONLY a certain host(s)? 2. Make a filter that will put all certain host(s) together in a group in the linkgrabber tab? Any filters that I try and create seems to BLOCK everything and therefor gets no results at all. Thanks. |
#2
|
||||
|
||||
Hi,
Just to make it clear Filter are used to filter links. They will not be processed/added to link collector list. Packagizer can modify links/names/packages. So you need both of them 1.) To filter out links, you can either setup multiple filters, for each host you don't want to have, a single rule. Or you could create one single filter that will matches on everything that you don't want to have but is little more complex to maintain. For example create a Filter - download url contains, archive.org that will filter out every archive.org download link. 2.) You can create a packagizer rule and create rule with download url contains, archive.org then set for example package name to Test and each archive.org link will go to package with that name. Best would be to tell us what exactly you want to achieve and then we can provide examples/help. Or you show us your rules and we can tell you what is wrong with them.
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
1. Make a filter that will allow ONLY a certain host(s)?
a. Allow only file-upload.com b. Allow only file-upload.com, dailyuploads.net and userscloud.com 2. Make a filter that will put all certain host(s) together in a group in the linkgrabber tab? a. Allow all hosts and group together all links from file-upload.com so they can easily be found in the list b. Allow all hosts and group together all links fromfile-upload.com, dailyuploads.net and userscloud.com so they can easily be found in the list Thanks. |
#4
|
||||
|
||||
1.a)
Settings->Linkgrabber Filter Create Rule, Downloadurl -> contains not -> file-upload.com 1.b) Settings->Linkgrabber Filter Create Rule, Downloadurl -> contains not -> .*(file-upload.com|dailyuploads.cc|userscloud.com).* -> enable regex checkbox
__________________
JD-Dev & Server-Admin |
#5
|
||||
|
||||
2.) you can either create a packagizer rule in Settings-Packagizer
- Downloadurl -> contains not -> file-upload.com or see 1.b) - then set package name to xy or - then set package key to xy or you can add them and then click in linkcollector sidebar to file-upload and all those links will be selected and you can easily move them to different package or remove/disable....
__________________
JD-Dev & Server-Admin |
#6
|
||||
|
||||
In case you need further help, please don't hesitate and ask
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Quote:
You said above create a packagizer rule in Settings-Packagizer - Downloadurl -> contains not -> file-upload.com however when I do that it puts everything EXCEPT file-upload.com in the package. So I made it - Downloadurl -> contains -> file-upload.com and it works as it should. 2 more questions about the packagizer rules: 1. The package seems to appear at random - can it be made to appear 1st? (at top) 2. I see a "set filename pattern" in the settings - can it be used to change all letters to lowercase? Thanks again for all your help! |
#8
|
|||
|
|||
You said "In case you need further help, please don't hesitate and ask" but you didn’t answer me?
|
#9
|
||||
|
||||
@flopodopo
Appwork (company behind JD) doesn't typically work on weekends, please wait Monday during german business hours for Jiaz to respond.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#10
|
|||
|
|||
Aaahhhh ... Thanks @raztoki.
|
#11
|
||||
|
||||
Sorry for late response. Yes, it must be *contains* and not *contains not* You already solved that one by yourself
__________________
JD-Dev & Server-Admin |
#12
|
||||
|
||||
Quote:
Settings-Advanced Settings-LinkgrabberSettings.linkgrabberaddattop
__________________
JD-Dev & Server-Admin |
#13
|
||||
|
||||
That's not possible yet. Why do you want/need such a feature?
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
Quote:
For later sorting. Uppercase sorts before lowercase, etc. Question: Can regex be used in the "set filename pattern"? |
#15
|
||||
|
||||
You can use regex in the *upper/if* section. in the *set/lower* section you can reference the matching groups from above. Don't forget to enable the regex checkbox in the upper section items where you want to use regex
__________________
JD-Dev & Server-Admin |
#16
|
|||
|
|||
Guess I'm SOL them LOL!
I don't know all that stuff you’re talking about and I don't know the formula for regex just that you can change uppercase to lowercase with it. Thanks. |
#17
|
|||
|
|||
Quote:
@flopodopo: You can try Event Scripter Extension. |
#18
|
||||
|
||||
Thanks @mgpai!
Yes, I also thought about Eventscripter Maybe you can lead him to a final script (packagizer hook) that auto renames to lower case? That would help him a lot
__________________
JD-Dev & Server-Admin |
#19
|
|||
|
|||
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/flopodopo.js |
#20
|
||||
|
||||
@mgpai: Thanks *thumbs up*
__________________
JD-Dev & Server-Admin |
#21
|
|||
|
|||
Quote:
Hi, Thanks @mgpai! So I just copy all that and paste it in the filename area then? Thanks again. |
#22
|
|||
|
|||
If you need further help, you can also contact me in JD Chat. |
#23
|
|||
|
|||
Quote:
PERFECT! I would have never figured all that out on my own LOL! That saves me renaming the files after downloading. Thank you so much. |
#24
|
||||
|
||||
__________________
JD-Dev & Server-Admin |
#25
|
|||
|
|||
@mgpai (or anyone)
Could I trouble someone for another easy (for those that know how) little script. Just as I convert all filenames above to lowercase I need another script or possibly combined with the lowercae script to convert any spaces in filenames to dots instead of spaces. i.e. this is a filename.mp4 this.is.a.filename.mp4 Thanking you in advance. |
#26
|
|||
|
|||
In the script, replace:
Code:
var lo = fn.toLowerCase(); Code:
var lo = fn.toLowerCase().replace(/\s/g,"."); |
#27
|
|||
|
|||
Quote:
WOW that was fast! Thanks much again @mgpal! The peoples names with spaces/dots are not consistent so had to rename them as before because they sort differently. Again this will save me and others time and aggravation LOL! Last edited by flopodopo; 03.03.2019 at 00:52. |
#28
|
||||
|
||||
Once again..mgpai is our master for eventscripter
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|