JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 31.12.2019, 14:53
Jehoschua Jehoschua is offline
Junior Loader
 
Join Date: Apr 2019
Posts: 13
Default How to not download images smaller than e.g. 300x300

Good afternoon

Is there a way to exclude small images found by the Crawler, for example, smaller than 300x300?

I guess that it can not be done unsing the Views and Filters,
is it maybe possible by creating a Script?
If yes, on which event should the Script listen to?

Thanks a lot, kind regards,
Thomas
Reply With Quote
  #2  
Old 31.12.2019, 15:11
DOOMNEZEU Legendofmir DOOMNEZEU Legendofmir is offline
Junior Loader
 
Join Date: Dec 2019
Posts: 12
Default

Simple, uninstall and reinstall the JD 2.
Reply With Quote
  #3  
Old 31.12.2019, 16:28
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

Quote:
Originally Posted by Jehoschua View Post
Is there a way to exclude small images found by the Crawler, for example, smaller than 300x300?

I guess that it can not be done unsing the Views and Filters,
If the image dimension is present in the filename or url, you can create a link filter rule based on keyword. You can also try creating one based on a combination of file type and file size.

Quote:
Originally Posted by Jehoschua View Post
is it maybe possible by creating a Script?
If yes, on which event should the Script listen to?
There are no eventscripter methods to filter the links before they are added to the linkgrabber. You have to use events which can query and delete links after they are added to the list.

If the source url does not have a dedicated plugin in JD, you can create linkcrawler rules to crawl only those links which match specified pattern(s).

Linkgrabber filter is more suited for this task.
Reply With Quote
  #4  
Old 31.12.2019, 16:50
Jehoschua Jehoschua is offline
Junior Loader
 
Join Date: Apr 2019
Posts: 13
Default

Thank you very much for your answer!

unfortunately, the URL does not contain the image size, so I probably have to create an "A Download stopped" event to remove the file after it was downloaded.
Reply With Quote
  #5  
Old 31.12.2019, 16:59
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

Quote:
Originally Posted by Jehoschua View Post
unfortunately, the URL does not contain the image size, so I probably have to create an "A Download stopped" event to remove the file after it was downloaded.
Most of the link info available to the 'download stopped' trigger, will also be usually available to the 'linkgrabber filter'. You might be able to use the same criteria to filter them out before they are added to the linkgrabber tab.
Reply With Quote
  #6  
Old 01.01.2020, 01:36
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,460
Default

@DOOMNEZEU Legendofmir
incorrect, this wont 'solve' op query

@Jehoschua
Is it possible to think of this task differently and in a more efficient manner? The reason I ask is you usually get content you don't desire by deep analyse event. So if you can find the content that you do want vs return all via deep analyse. Eg. you know image you want is behind specific html and create a regex pattern to just return said content.

Either by
creating either linkcrawler rule. quick to implement, but limited in function.
(settings > advanced setting > LinkCrawler.linkcrawlerrules, json encoded rule)
or
a dedicated decrypter plugin. most flexibility, but requires Java knowledge.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
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 - 2022, Jelsoft Enterprises Ltd.