JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 24.01.2023, 07:26
halo halo is offline
I will play nice!
 
Join Date: Mar 2019
Posts: 7
Default Logical Operators in "Filename" field (bottom search field)

I know this may be a long-shot request, but would it be feasible to implement logical operators (AND, NOT, OR, etc) functionality into the "filename" search field in the Downloads and LinkGrabber tabs?
How I use JD is often for large image collecting using it's webcrawling capabilities. This can often pose a problem when the files that are being gathered are a mixed assortment. The logical operators can help me filter out the Linkgrabber before proceeding with the download.
Example: I can have it display all files that "do NOT have" whatever criteria I set. Then once displayed, simply delete them and then proceed to download the rest.
I understand the Packagizer can somewhat achieve this same thing, however, it has to be set-up each time with new criteria's I may encounter. I'm hoping for something a little more dynamic and "on-the-fly".

Any alternative suggestions are always welcome.

thanks
Reply With Quote
  #2  
Old 24.01.2023, 12:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,482
Default

only way todo this is with regex currently for example: (?!not|stuff|here)(wants|baah)
for memory you have to enable this in advanced settings
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 25.01.2023 at 00:35.
Reply With Quote
  #3  
Old 24.01.2023, 12:58
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 64,622
Default

Two possibilities on how to use RegEx search:
1. Use this syntax inside the field:
Code:
regex:yourRegularExpression
2. If you want to permanently use RegEx in the search field without the "regex:" modified, go to Settings -> Advanced Settings -> Search for:
Code:
GeneralSettings.filterregex
--> Enable this
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #4  
Old 24.01.2023, 20:10
halo halo is offline
I will play nice!
 
Join Date: Mar 2019
Posts: 7
Default

I was almost certain some similar function already existed in the program and I just missed it. haha

I openly admit that I've never been really good at regex, but it's nothing I can't learn, I'm sure.

Thanks again, guys!
Reply With Quote
  #5  
Old 25.01.2023, 14:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 64,622
Default

Thanks for your feedback!
Quote:
Originally Posted by halo View Post
I openly admit that I've never been really good at regex, but it's nothing I can't learn, I'm sure.
It's actually fun even if you're only learning the basics.
Here is a webtool I recommend for testing/practising: regex101.com
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #6  
Old 25.01.2023, 22:41
halo halo is offline
I will play nice!
 
Join Date: Mar 2019
Posts: 7
Default

Yes, thank you. I'm familiar with regex101. I've used it in the past for other projects.

However, as a regular PC user, I suppose the question comes down to which of the following (as a user) would work more easily and often for me:

Entering
regex:^((?!example).)*$

or

NOT example

Of course, this doesn't factor in a search string such as "forest AND winter AND NOT snow". The RegEx equivalent would be rather lengthy.
But I can copy & paste my expressions every time I needed it (once I figure them out), so it does still serve the function that I was looking for.
Tho, I will need 3 different expressions for the 3 major logical functions (AND, NOT, OR).
But I can make it work. I'm not that picky for a solution on something this small.

I'll consider this closed on my end since I was given a functioning solution.
Thanks again for you responses and solution.
Reply With Quote
  #7  
Old 26.01.2023, 03:17
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,482
Default

most welcome!
I recall using one piece of software many moons ago that allow layered searching, so
somethinghere [enter]
somethingelse
and it would find content with somethinghere and somethingelse, after the first enter it would clear the textbox and show X for memory in the search box so you knew you had layered search active.
quite useful, considering regex wasn't required (not sure if it was supported), but still didn't have not or or functions.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #8  
Old 26.01.2023, 14:28
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 64,622
Default

@helo
We got a whole collection ticket for searchbar suggestions:

If you search through our forum you will find similar threads e.g.:
https://board.jdownloader.org/showth...=search+filter

https://board.jdownloader.org/showpo...98&postcount=3
...and many more.

While we do collect suggestions for this I don't see any chances of anyone working on this ever at this moment...
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
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 05:33.
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 - 2023, Jelsoft Enterprises Ltd.