JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 06.07.2019, 01:22
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default How i create a filter that block....

Hi.


I want to create a filter that i want to block all the links contains(Anywhere at the link) the specific word.


And how i can to the same filter put more than one word?
Reply With Quote
  #2  
Old 06.07.2019, 07:53
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

settings > linkgrabber filter > filter rule && regular expression? (ab|bc|cd)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 06.07.2019, 15:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

don't forget to enable regex checkbox on the right side

(test|house|game)
test or house or game
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 08.07.2019, 21:49
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

With space?
Like it is your example?
Reply With Quote
  #5  
Old 09.07.2019, 09:50
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Quote:
(test|house| game)
is the rule for
Quote:
'test' or 'house' or ' game'
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 11.07.2019, 04:54
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

With that syntax you mention doesn't work.


Only with the syntax without any space it work.


For example:
Home|tv

if i enter it like you say:
home | tv


simply DOESN'T WORK at least at test url space you have.

Last edited by Agnostos; 11.07.2019 at 04:58.
Reply With Quote
  #7  
Old 11.07.2019, 10:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Quote:
Originally Posted by Agnostos View Post
For example:
Home|tv

if i enter it like you say:
home | tv.
I'm sorry but your example doesn't make any sense?!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 11.07.2019, 10:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

You can test your pattern here
regex101.com

The syntax is correct but I still don't know what you're trying to do
Please provide an example url and tell us what you want to achieve.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 11.07.2019, 21:23
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Is simple.


I want every link has the word tv or home anywhere at the url link simply filter block it.
Reply With Quote
  #10  
Old 12.07.2019, 10:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

in link(url) or filename?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 12.07.2019, 11:06
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

At both and mostly at the link.
Reply With Quote
  #12  
Old 12.07.2019, 11:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

sourceURL - contains .*(home|tv).*
enable the regex checkbox on the right
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 12.07.2019, 11:18
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Already did but with space doesn't work.
Work only WITHOUT any space between the words I want to block.

Again

For example(it work) :
Home|tv

if i enter it like you say(doesn't work) :
home | tv
Reply With Quote
  #14  
Old 12.07.2019, 11:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

URLs cannot have spaces! space in an URL is either '+' or '%20'
so pattern must look like
.*(home(\+|%20)?|tv(\+|%20)?).*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 12.07.2019, 11:54
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

What????

Then why the syntax of words I write above it work fine and is block normal all the links with words tv or home?

And all the syntax you mentioning at your last post it really toooooooo complicated
Reply With Quote
  #16  
Old 12.07.2019, 12:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

It's normal regex/pattern,
en.wikipedia.org/wiki/Regular_expression
How about providing real example links?

you've asked to block home and tv with and without space, just tested it in regex101.com
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 12.07.2019, 12:20
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

No I NEVER say and I say or.

For example I want to block words may have either link

Home or TV or series e.t.c.
Reply With Quote
  #18  
Old 12.07.2019, 12:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

.*(home|tv|series|nice|super|wow).*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 12.07.2019, 13:11
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Again no.

I put.

Only that without .*
test|house|game

And it worked fine.
Reply With Quote
  #20  
Old 12.07.2019, 14:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Quote:
Originally Posted by Agnostos View Post
Again no.
Again no what? my pattern also works fine

how about providing example links? I can only create own test links and those work fine for me
__________________
JD-Dev & Server-Admin
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 04:29.
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 - 2024, Jelsoft Enterprises Ltd.