JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 19.07.2019, 18:41
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default A general filter bug

A general filter bug, and a bug in adding links. UNABLE the addition of some links.

see:
https://i.postimg.cc/g2Qb0LXk/Screen...t-05-39-PM.jpg

19.07.19 15.51.15 <--> 19.07.19 17.41.57 jdlog://2782186935451/
Reply With Quote
  #2  
Old 19.07.2019, 18:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

working fine. your java crashes agani and again because of not enough native memory
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 347696 bytes for Chunk::new
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 19.07.2019, 18:52
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Quote:
Originally Posted by Jiaz View Post
working fine. your java crashes agani and again because of not enough native memory
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 347696 bytes for Chunk::new

I know, but it's the most common errors when updating or running,, too much memory usage by JD2 = MEMORY LEAKS!!!
Now I have repeated this and still the same error of filters, logs and unknowns.
Reply With Quote
  #4  
Old 19.07.2019, 18:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by djmakinera View Post
too much memory usage by JD2 = MEMORY LEAKS!!!
That's not the case. But I give up this discussion.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 19.07.2019, 18:57
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Two installations have stopped working after the few latest updates, everything is broken.

See: https://i.postimg.cc/cHZ91fW3/Screen...-54-PMbgbg.jpg
Reply With Quote
  #6  
Old 19.07.2019, 18:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I'm sorry but
1.) there have been no real changes
2.) I don't know what your screenshot wants to show me

I offer help via Teamviewer but I'm sick of helping and finally it's completely something different
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 19.07.2019, 19:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

3.) Please enter a VALID Pattern when using Regex in Searchfield. THANKS!
Your regex is invalid!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 19.07.2019, 19:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 19.07.2019, 19:21
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

But how fast can turn on or off Regex when searching for different names? No use of advanced settings every time
Reply With Quote
  #10  
Old 19.07.2019, 19:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

either don't use regex or enter valid regex. You can also use eventscripter and create button to toggle this option.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 19.07.2019, 22:03
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 1,324
Default

Quote:
Originally Posted by djmakinera View Post
But how fast can turn on or off Regex when searching for different names? No use of advanced settings every time
"Downloadlist Bottombar Button Pressed" + Eventscripter + keyboard shortcut
Keyboard shortcut is very fast!

Quote:
Originally Posted by Jiaz View Post
You can also use eventscripter and create button to toggle this option.
Done.

Script example:
Code:
// Filterregex on/off
// Trigger: Downloadlist Bottombar Button Pressed
// EventTriggername: Filterregex

if (name == "Filterregex") {
    var filterregex = callAPI("config", "get", "org.jdownloader.settings.GeneralSettings", null, "filterregex");
    if (filterregex == false) {
        callAPI("config", "set", "org.jdownloader.settings.GeneralSettings", null, "filterregex", true);
    } else {
        callAPI("config", "set", "org.jdownloader.settings.GeneralSettings", null, "filterregex", false);
    }
}
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.

Last edited by thecoder2012; 19.07.2019 at 22:17.
Reply With Quote
  #12  
Old 19.07.2019, 22:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

thanks @thecoder2012 I knew it only takes a few minutes for you to create a script
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 20.07.2019, 08:50
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

nice script @thecoder2012
script works, but toggling the setting via API calls does not REFRESH the existing filter. one has to type something new into the textbox or cut/paste. Also you do not know the status within the button state. Personally I would like to see this outside of event scripter and core feature with dedicated button GUI editor with status indicator, as you have these said limitations of status and refreshing issue.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

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

Last edited by raztoki; 20.07.2019 at 08:57.
Reply With Quote
  #14  
Old 20.07.2019, 19:19
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

It does not work for me. When entering e.g.
Code:
name (
searches for all packages

Trigger - none
Edit script - Copy/Paste. Save
Reply With Quote
  #15  
Old 21.07.2019, 13:36
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 1,324
Default

Quote:
Originally Posted by djmakinera View Post
It does not work for me. When entering e.g.
Code:
name (
searches for all packages
It works in my tests if regex is off.



Quote:
Originally Posted by djmakinera View Post
Trigger - none
Edit script - Copy/Paste. Save
Trigger is required in this case without script modification.





Quote:
Originally Posted by raztoki View Post
script works, but toggling the setting via API calls does not REFRESH the existing filter.
Sure but my script is only for the advanced settings as fast switch. As answer for the last user question "But how fast can turn on or off Regex".

Quote:
Originally Posted by raztoki View Post
one has to type something new into the textbox or cut/paste. Also you do not know the status within the button state.
Our human memory is not enough?

Quote:
Originally Posted by raztoki View Post
Personally I would like to see this outside of event scripter
It's not really helpful for all cases. Except in this case, maybe. Ticket #87258 is already online.

Quote:
Originally Posted by raztoki View Post
and core feature with dedicated button GUI editor with status indicator, as you have these said limitations of status and refreshing issue.
And this wrote you as developer. Really funny. It's already clear but a lot of work in the jd java code.
I'm more for status indicator with event scripter than dedicated button GUI.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.

Last edited by thecoder2012; 21.07.2019 at 13:39.
Reply With Quote
  #16  
Old 21.07.2019, 14:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

heh its not that hard, i've created features within the menu system before.
memory can be bad, checkbox is good no? ;p
he probably had regex enabled and not escaped the pattern.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #17  
Old 22.07.2019, 12:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by raztoki View Post
he probably had regex enabled and not escaped the pattern.
Yes, that's exactly the case and still he doesn't understand that when using regex,...well..maybe he ..should enter valid patterns?!...
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 22.07.2019, 12:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by djmakinera View Post
It does not work for me. When entering e.g.
Code:
name (
searches for all packages

Trigger - none
Edit script - Copy/Paste. Save
...maybe you should enter a valid pattern and escape the ( ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 22.07.2019, 13:58
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

After all, the normal name does not require any pattern and God knows what? Not everything has to be based on regular expressions!
Reply With Quote
  #20  
Old 22.07.2019, 14:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@djmakinera: if you're using regex, then you must specify valid pattern
( is start of a group, so you have to escape it!
no, not everything has to use regex, but it's your decision if you're using regex or not.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #21  
Old 22.07.2019, 18:10
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

You are great. Show me that it works according to my expectations.
Reply With Quote
  #22  
Old 22.07.2019, 19:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

You have to escape the ( because ( is a special character in pattern.
Quote:
Show me love \(
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 23.07.2019, 02:24
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

show me how to write regular expression patterns? eek
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #24  
Old 23.07.2019, 10:08
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Works only for regex, does not work for different names
Reply With Quote
  #25  
Old 23.07.2019, 14:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

How about an example? Don't see why it shouldn't work for different names
__________________
JD-Dev & Server-Admin
Reply With Quote
  #26  
Old 24.07.2019, 11:15
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

How to run the script, I created a provisional button, but nothing happens. Also exemplary scripts, how to run, I do not see any buttons used to run!
Reply With Quote
  #27  
Old 25.07.2019, 10:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

// Filterregex on/off
// Trigger: Downloadlist Bottombar Button Pressed
// EventTriggername: Filterregex

Name of the Button must be Filterregex and the script must be on given trigger
__________________
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 19:47.
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.