JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #501  
Old 31.07.2018, 12:50
Tom Tom is offline
JD Adviser
 
Join Date: Jun 2018
Posts: 104
Default

@mgpai:
can you add delete source file after ac3 file was created, please?
thx a lot
Reply With Quote
  #502  
Old 31.07.2018, 15:36
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Tom View Post
... delete source file after ac3 file was created ...
Script Updated:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Tom.js

Note: The source file will be permanently deleted (not moved to recycle bin).
Reply With Quote
  #503  
Old 31.07.2018, 16:10
Tom Tom is offline
JD Adviser
 
Join Date: Jun 2018
Posts: 104
Default

great mgpai, exactly what i wanted
works !
Reply With Quote
  #504  
Old 01.08.2018, 23:32
pupupuia pupupuia is offline
Modem User
 
Join Date: Aug 2018
Posts: 3
Default Stop Downloads Script

Hi there!

I am struggling to create a simple Event-Scripter Script to stop my downloads. Unfortunately I am not a professional, so I would need your help.

I need a script, which will stop the downloads, as soon as a daily traffic maximum is reached. I use share-online, which has a download limit of 100GB every day, and often I download just a couple of mb more than that, which will give me a "penalty".

Since I have thousands of links in my Jdownloader list, it would be great to let everything work by itsself. It already starts every day on its own (scheduler), but if it would stop as well, it would be perfect.

I would be very happy if anyone could help!
Thanks!
Reply With Quote
  #505  
Old 02.08.2018, 10:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

@pupupuia: Go to settings-plugins-shareonline and there you can setup either to reserve some free traffic or no longer use the account when limit is reached.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #506  
Old 02.08.2018, 11:42
pupupuia pupupuia is offline
Modem User
 
Join Date: Aug 2018
Posts: 3
Default

Quote:
Originally Posted by Jiaz View Post
@pupupuia: Go to settings-plugins-shareonline and there you can setup either to reserve some free traffic or no longer use the account when limit is reached.

Thank you, I did not see that!
If I set it on X GB, is it the daily maximum? So basically if I Put all of my links in my download list, and start via scheduler in the Morning, and stop via this plugin, does everything basically work automatically?

Thanks again!
Reply With Quote
  #507  
Old 02.08.2018, 12:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

JDownloader regularly polls SO and checks for *traffic limits* and once the limit is reached, it will stop using the account until enough traffic is available again
__________________
JD-Dev & Server-Admin
Reply With Quote
  #508  
Old 09.08.2018, 14:57
animus animus is offline
Ultra Loader
 
Join Date: Jan 2010
Posts: 48
Default

hi mgpai

İ have long list of downloads that i renamed (the uploader scrambles the names to keep them safe ,i change the name as i grab them).

is it possible to rename the extracted files (and possibly just the extensions i wanted like .avi .mkv .mp4 .mpeg but not .jpeg or .txt) after the archive name?i tried this on packagizer but no avail.

also i cant figure out the filter on jd extractor.

Last edited by animus; 09.08.2018 at 15:09.
Reply With Quote
  #509  
Old 09.08.2018, 19:49
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by animus View Post
... rename the extracted files ... after the archive name ...
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/animus.js

Quote:
Originally Posted by animus View Post
... also i cant figure out the filter on jd extractor.
You have to use regular expressions to match the full path of the file you want to exclude. For e.g. to exclude all nfo files:

Code:
.*\.nfo$
Reply With Quote
  #510  
Old 01.09.2018, 19:27
maks.im
Guest
 
Posts: n/a
Default

Hello.
(Sorry for English, google translate)

Possible to write a script like this?:

there are two files.

1.jpeg 2kb
1.jpeg 2Mb

if (1.jpeg (on disk) >= 1.jpeg (new)) skip

if (1.jpeg (on disk) < 1.jpeg (new)) rewrite
Reply With Quote
  #511  
Old 02.09.2018, 02:58
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

@maks.im
not sure about that... event scripter might not have the trigger to do this at the time download is about to happen. currently the download core has a check against user interface setting: 'settings > general > download management > if the file already exists'
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #512  
Old 02.09.2018, 12:09
maks.im
Guest
 
Posts: n/a
Default

Eh. badly.
hoped that it would be possible to simplify the script.

Thanks.
Attached Images
File Type: png jd.png (41.2 KB, 2 views)
Reply With Quote
  #513  
Old 02.09.2018, 12:35
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

@maks.im: Contact me in JD Chat (if possible).
Reply With Quote
  #514  
Old 04.09.2018, 13:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

@maks.im: maybe the url contains markers like thumb or something so you can easily filter out the small version of the images. send example links to support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #515  
Old 19.09.2018, 02:03
webdjoe webdjoe is offline
Junior Loader
 
Join Date: Apr 2017
Posts: 11
Default

Is there anyway to do a simple post request without headers in event scripter? Or is it a better (simpler) idea to just run an external script? I am trying to call an api on the sonarr/radarr servers to add a downloaded file to my library.

Thanks in advanced!

EDIT: Sorry, missed the post regarding this in the middle of the thread.

Last edited by webdjoe; 19.09.2018 at 09:04.
Reply With Quote
  #516  
Old 19.09.2018, 10:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

@webdjoe: so you could find a working solution for you?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #517  
Old 20.09.2018, 02:17
webdjoe webdjoe is offline
Junior Loader
 
Join Date: Apr 2017
Posts: 11
Default

Yes I adapted it from the script below thanks to Wikuler. The support here is amazing!:thumbup:

Quote:
Originally Posted by Wicküler View Post
Don't know if this should be posted since it's so simple, but I wanted a way of getting notifications on my phone via pushover when a package had finished. It was quite easy and using the code
Code:
postPage("**External links are only visible to Support Staff**,
"token=appToken&user=userKey&message="
+ package.getName() +
" finished.");
with the Trigger "Package finished" is all that was needed. The userKey is located in your pushover-profile-page and the appToken can be generated there as well via "Create an API token" (somewhere near the bottom under "Your applications").

Works like a charm but if this thread is meant for more elaborate scripts, feel free to move or delete this post. Since I didn't find any other hints or tutorials for using pushover for jdownloader-notifications, I thought I'd just leave it here.
Reply With Quote
  #518  
Old 20.09.2018, 18:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

Thanks for the feedback. Nice to hear that you could modify the script to your own needs
__________________
JD-Dev & Server-Admin
Reply With Quote
  #519  
Old 27.10.2018, 14:21
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Custom toolbar button to Show/Hide Single Child Packages (Toggles "HideSingleChildPackages" advanced setting)



Script:
Code:
// Show/Hide Single Chlld Packages
// Trigger: Toolbar Button Pressed
// Customize Main Toolbar > Add new "EventScripter Trigger" button > Rename it to "Show/Hide Single Child Packages" (without quotes/case-sensitive)

if (name == "Show/Hide Single Child Packages") {
    var data = "org.jdownloader.settings.GraphicalUserInterfaceSettings";
    var key = "HideSingleChildPackages";
    var value = callAPI("config", "get", data, null, key);
    callAPI("config", "set", data, null, key, !value);
}

Last edited by mgpai; 27.10.2018 at 14:56. Reason: Corrected Trigger Required
Reply With Quote
  #520  
Old 28.10.2018, 13:56
DaDealer's Avatar
DaDealer DaDealer is offline
JD Adviser
 
Join Date: Oct 2017
Posts: 112
Default

Hi there,
i'm looking for a script thats blocked the refresh of the share-online limit of the premium accounts during the account is in use. There is an error that the limit jumps back on the full limit when the account is actually in use for downloading.
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 12: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 - 2024, Jelsoft Enterprises Ltd.