JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 06.07.2019, 00:22
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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, 06:53
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,104
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, 14:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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, 20:49
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
Default

With space?
Like it is your example?
Reply With Quote
  #5  
Old 09.07.2019, 08:50
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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, 03:54
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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 03:58.
Reply With Quote
  #7  
Old 11.07.2019, 09:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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
  #8  
Old 11.07.2019, 09:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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
  #9  
Old 11.07.2019, 20:23
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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, 09:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
Default

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

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

sourceURL - contains .*(home|tv).*
enable the regex checkbox on the right
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 12.07.2019, 10:18
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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, 10:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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, 10:54
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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, 11:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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, 11:20
Agnostos Agnostos is offline
Storm
 
Join Date: Dec 2014
Posts: 219
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, 11:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
Default

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

Again no.

I put.

Only that without .*
test|house|game

And it worked fine.
Reply With Quote
  #20  
Old 12.07.2019, 13:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,237
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 22:30.
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 - 2019, Jelsoft Enterprises Ltd.