JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 30.01.2020, 12:40
mensa mensa is offline
JD Adviser
 
Join Date: Nov 2012
Posts: 106
Default Run Script after extraction?

Hello,

is it possible to let run an own script, after successfull deep-extraction of the archives?

I want to delete all *.jpg, *.gif and *sample*mkv

How to do that?

Last edited by mensa; 30.01.2020 at 12:42.
Reply With Quote
  #2  
Old 30.01.2020, 12:52
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

are you just basing it on filename? if so there is a settings within archive extraction extension module allows you to ignore based on filename.
settings > archive exactor > don't unpack files matching....
__________________
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 30.01.2020, 12:59
mensa mensa is offline
JD Adviser
 
Join Date: Nov 2012
Posts: 106
Default

Cool, thanks. I found that in the meantime also, but what I did forget to mention before is: I want to do delete that files only for movie downloads.
So I would first check if the new folder contains a *.mkv and only if yes -> then delete all *sample*, *jpg*. Is that also possible?
Reply With Quote
  #4  
Old 30.01.2020, 13:28
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

sorry there is no conditional rule support with the built in function. The best thing you could do is check with event scripter post extraction, 'after extraction finished' event.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 30.01.2020, 13:32
mensa mensa is offline
JD Adviser
 
Join Date: Nov 2012
Posts: 106
Default

Thank you, in which language do I have to write the commands for post extractor? Java?
Reply With Quote
  #6  
Old 30.01.2020, 13:38
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

event scripter, runs off javascript.
show/hide help will give you all the supported functions.
__________________
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 18:48.
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.