JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 20.09.2018, 12:42
flopodopo
Guest
 
Posts: n/a
Default 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.
Reply With Quote
  #2  
Old 20.09.2018, 16:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #3  
Old 20.09.2018, 23:21
flopodopo
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #4  
Old 21.09.2018, 14:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #5  
Old 21.09.2018, 15:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #6  
Old 21.09.2018, 15:08
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

In case you need further help, please don't hesitate and ask
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 21.09.2018, 23:23
flopodopo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
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....
Thanks again Jiaz!

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!
Reply With Quote
  #8  
Old 23.09.2018, 13:21
flopodopo
Guest
 
Posts: n/a
Default

You said "In case you need further help, please don't hesitate and ask" but you didn’t answer me?
Reply With Quote
  #9  
Old 23.09.2018, 14:21
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

@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. :]
Reply With Quote
  #10  
Old 23.09.2018, 22:18
flopodopo
Guest
 
Posts: n/a
Default

Aaahhhh ... Thanks @raztoki.
Reply With Quote
  #11  
Old 24.09.2018, 16:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Sorry for late response. Yes, it must be *contains* and not *contains not* You already solved that one by yourself
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 24.09.2018, 16:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by flopodopo View Post
1. The package seems to appear at random - can it be made to appear 1st? (at top)
You can setup JDownloader to add new packages at top of list but as soon as there is another package, that one will be at top. There is no way to *stick* a package at top position.
Settings-Advanced Settings-LinkgrabberSettings.linkgrabberaddattop
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 24.09.2018, 16:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by flopodopo View Post
2. I see a "set filename pattern" in the settings - can it be used to change all letters to lowercase?
That's not possible yet. Why do you want/need such a feature?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 25.09.2018, 03:18
flopodopo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by flopodopo **External links are only visible to Support Staff**...
2. I see a "set filename pattern" in the settings - can it be used to change all letters to lowercase?
Quote:
Originally Posted by Jiaz View Post
That's not possible yet. Why do you want/need such a feature?

For later sorting. Uppercase sorts before lowercase, etc.


Question:
Can regex be used in the "set filename pattern"?
Reply With Quote
  #15  
Old 25.09.2018, 09:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #16  
Old 25.09.2018, 10:13
flopodopo
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #17  
Old 25.09.2018, 11:26
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Jiaz View Post
... Settings-Advanced Settings-LinkgrabberSettings.linkgrabberaddattop
@Jiaz: That setting is related to moving packages to top in download list. A ticket (#81421) is pending to add a similar setting for linkgrabber tab.

Quote:
Originally Posted by flopodopo View Post
... can it be made to appear 1st? (at top)
... can it be used to change all letters to lowercase?
@flopodopo: You can try Event Scripter Extension.
Reply With Quote
  #18  
Old 25.09.2018, 11:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #19  
Old 26.09.2018, 08:09
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/flopodopo.js
Reply With Quote
  #20  
Old 26.09.2018, 09:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@mgpai: Thanks *thumbs up*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #21  
Old 04.10.2018, 19:13
flopodopo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mgpai View Post
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/flopodopo.js





Hi,


Thanks @mgpai!


So I just copy all that and paste it in the filename area then?


Thanks again.
Reply With Quote
  #22  
Old 04.10.2018, 19:23
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

  • Install/enable the eventscripter extension. (Settings > Event Scripter)
  • Open the eventscipter panel > Click "Edit" button > Paste the script in the editor > Save
  • In the main eventscripter panel , select "Pacakagzier Hook" in the "Trigger" colomn.
  • When you add new links, they will be now be automatically converted to lower case
.
If you need further help, you can also contact me in JD Chat.
Reply With Quote
  #23  
Old 04.10.2018, 23:42
flopodopo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mgpai View Post
  • Install/enable the eventscripter extension. (Settings > Event Scripter)
  • Open the eventscipter panel > Click "Edit" button > Paste the script in the editor > Save
  • In the main eventscripter panel , select "Pacakagzier Hook" in the "Trigger" colomn.
  • When you add new links, they will be now be automatically converted to lower case
.
If you need further help, you can also contact me in JD Chat.

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.
Reply With Quote
  #24  
Old 05.10.2018, 10:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 02.03.2019, 16:39
flopodopo
Guest
 
Posts: n/a
Default

@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.
Reply With Quote
  #26  
Old 02.03.2019, 16:45
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

In the script, replace:
Code:
var lo = fn.toLowerCase();
with:
Code:
var lo = fn.toLowerCase().replace(/\s/g,".");
Reply With Quote
  #27  
Old 03.03.2019, 00:49
flopodopo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mgpai View Post
In the script, replace:
Code:
var lo = fn.toLowerCase();
with:
Code:
var lo = fn.toLowerCase().replace(/\s/g,".");

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.
Reply With Quote
  #28  
Old 04.03.2019, 12:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Once again..mgpai is our master for eventscripter
__________________
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 23:57.
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.