JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > Search Forums
Showing results 1 to 50 of 689
Search took 0.02 seconds.
Search: Posts Made By: mgpai
Forum: JDownloader 2 18.04.2024, 14:34
Replies: 2,910
Views: 10,273,826
Posted By mgpai
It means, for example, if reconnect fails at...

It means, for example, if reconnect fails at 10:00 AM sound will play 4 minutes after that, at 10:04 AM. :)
Forum: JDownloader 2 18.04.2024, 14:17
Replies: 2,910
Views: 10,273,826
Posted By mgpai
4 mins. after reconnect is considered failed. ...

4 mins. after reconnect is considered failed.

1000 hrs reconnect finished
1000 hrs script checks if reconnect was SUCCESFUL or has FAILED
1004 hrs play sound only if reconnect has FAILED
Forum: JDownloader 2 18.04.2024, 13:36
Replies: 2,910
Views: 10,273,826
Posted By mgpai
The script will run only AFTER a reconnect is...

The script will run only AFTER a reconnect is performed.

If the reconnect was SUCCESFUL it will do nothing.

If reconnect has FAILED, it will wait for 4 minutes and then play a sound.
Forum: JDownloader 2 18.04.2024, 12:02
Replies: 2,910
Views: 10,273,826
Posted By mgpai
The interval scripts do not check/wait for...

The interval scripts do not check/wait for reconnect. They simply check for connection at specified intervals and play a sound if there is no connection.

The first interval script waits for 'time'...
Forum: JDownloader 2 17.04.2024, 16:31
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Try all of them and find out. :)

Try all of them and find out. :)
Forum: JDownloader 2 17.04.2024, 16:09
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Total interval = 1st interval + 2nd Interval In...

Total interval = 1st interval + 2nd Interval
In your example it will be 240000 + 60 * 60 * 1000 = 64 minutes.

I would recommend using a script with a single interval. It will check for connection...
Forum: JDownloader 2 17.04.2024, 13:42
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Interval value in the top field controls how...

Interval value in the top field controls how often the script is exexuted. The variable 'time' controls the wait time before playing a aound. In your example, the script runs every 4 mins (240000)...
Forum: JDownloader 2 17.04.2024, 12:57
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* connection notification trigger :...

/*
connection notification
trigger : interval (300000)
enable 'synchronous execution of script' checkbox
*/

var time = Date.now() + 4 * 60 * 1000;
var connected = false;

while...
Forum: JDownloader 2 09.04.2024, 15:50
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Will do. Thanks. :)

Will do. Thanks. :)
Forum: JDownloader 2 09.04.2024, 13:44
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Formal request for the APIs. ;)

Formal request for the APIs. ;)
Forum: JDownloader 2 08.04.2024, 13:58
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* trigger : after a reconnect */ ...

/*
trigger : after a reconnect
*/

var x = 5; // <- wait time in minutes
var setAutoReconnectEnabled = function(boolean) {
callAPI("config", "set",...
Forum: JDownloader 2 08.04.2024, 13:16
Replies: 2,910
Views: 10,273,826
Posted By mgpai
For this method no need for 2nd interval script. ...

For this method no need for 2nd interval script.

After reconnect > disable auto-reconnect > sleep x seconds > re-enable auto-reconnect.
Forum: JDownloader 2 08.04.2024, 13:10
Replies: 2,910
Views: 10,273,826
Posted By mgpai
If I am correct, if auto-reconnect it is disabled...

If I am correct, if auto-reconnect it is disabled globally at startup, niether of the reconnect events will be triggered, which would mean a 3rd script with 'jdownloader started' trigger should be...
Forum: JDownloader 2 08.04.2024, 12:53
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Had considered it. If JD is closed/restarted...

Had considered it. If JD is closed/restarted while 'auto-reconnect' is disabled, the 'property' will be lost and auto-reonncect will remain disabled after the restart. The user will then have to...
Forum: JDownloader 2 08.04.2024, 12:31
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* trigger : before a reconnect */ ...

/*
trigger : before a reconnect
*/

var next = getProperty("next", true);

while (Date.now() < next) {
sleep(1000);
}
Forum: JDownloader 2 01.04.2024, 15:31
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Try replacing: var output =...

Try replacing:
var output = link.downloadPath.replace(/(.+\.)(aac|m4a|ogg)$/i, "$1mp3");
with:
var output = link.downloadPath.replace(/(.+\.)(aac|m4a|ogg|opus)$/i, "$1mp3");
Forum: JDownloader 2 23.03.2024, 06:27
Replies: 2,910
Views: 10,273,826
Posted By mgpai
To download a file using the browser instance. ...

To download a file using the browser instance.

myBrowser.getDownload(savePath, url);


If the final link is behind cf protection, adding it via api will not work since JD will use a different...
Forum: JDownloader 2 19.03.2024, 12:42
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Give me the place to stand, and I shall move the...

Give me the place to stand, and I shall move the earth. - Archimedes ;)
Forum: JDownloader 2 19.03.2024, 09:04
Replies: 2,910
Views: 10,273,826
Posted By mgpai
It does not work the way you seem to think it...

It does not work the way you seem to think it would. Selection made in the script cannot be used outside the script (in GUI). You will have to create multiple scripts which perform different...
Forum: JDownloader 2 18.03.2024, 18:36
Replies: 2,910
Views: 10,273,826
Posted By mgpai
What action do you want to perform after...

What action do you want to perform after selecting them? You can also just set the search filter at the bottom to "Hoster" and type the host(s) name in the search field.
Forum: JDownloader 2 14.03.2024, 10:22
Replies: 2,910
Views: 10,273,826
Posted By mgpai
JD uses Java but eventscripter uses Javascript. ...

JD uses Java but eventscripter uses Javascript.

I guess the qt parameter should be preceded by interpreter or other parameters. In any case, it is not necessary to write the path to a text file....
Forum: JDownloader 2 13.03.2024, 12:58
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Zero experience with this, but from what I could...

Zero experience with this, but from what I could find on the web, maybe something like this :
callSync("QT_SCALE_FACTOR=.6", player, file);
Forum: JDownloader 2 07.03.2024, 11:46
Replies: 2,910
Views: 10,273,826
Posted By mgpai
> (3. Might be optional but is maybe a good idea...

> (3. Might be optional but is maybe a good idea to prevent updating the account too often (resulting in unnecessary requests at the hoster), depending also on the trigger of when the script fires.)...
Forum: JDownloader 2 06.03.2024, 13:41
Replies: 2,910
Views: 10,273,826
Posted By mgpai
My pleasure. :) Shoule be possible to...

My pleasure. :)



Shoule be possible to autmaitcally update it directly from browser by using MYJD API in userscript, eliminating the need to export/import it from text file using eventscripter...
Forum: JDownloader 2 06.03.2024, 13:02
Replies: 2,910
Views: 10,273,826
Posted By mgpai
long[] is used in the help file to indicate that...

long[] is used in the help file to indicate that the parameter is array

if you see:
ids (long[])

you will need to use:
var ids = [object ids];


Also for namespace "updateAccount" the...
Forum: JDownloader 2 03.03.2024, 23:57
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Maybe you got what I wrote in my reply, but just...

Maybe you got what I wrote in my reply, but just in case, I meant you can call external utils from the script and pass the input as parameter to eventscripter methods.
Forum: JDownloader 2 03.03.2024, 22:15
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Hello Jiaz, Which URL?

Hello Jiaz,

Which URL?
Forum: JDownloader 2 03.03.2024, 10:33
Replies: 2,910
Views: 10,273,826
Posted By mgpai
The script does not disconnect the internet...

The script does not disconnect the internet connection. It merely executes the 'restartAndUpdate" command when an update is available. Naturally it requires an internet connection to do that, which...
Forum: JDownloader 2 03.03.2024, 05:34
Replies: 2,910
Views: 10,273,826
Posted By mgpai
While it is not possible to display JD GUI, you...

While it is not possible to display JD GUI, you can use external utils to display interactive dialog/prompt. For e.g. in windows, you can use vbs MsgBox/InputBox or nircmd qbox.
Forum: JDownloader 2 01.03.2024, 16:16
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Reconnect option should not be disabled. If you...

Reconnect option should not be disabled. If you are repeatedly "No internet connection" message, it would only mean the internet connection was lost. I cannot say for sure why. Maybe, Jiaz can...
Forum: JDownloader 2 29.02.2024, 17:25
Replies: 2,910
Views: 10,273,826
Posted By mgpai
My guess is internet connection get disconnected...

My guess is internet connection get disconnected (by other script/setting/unknown reason) before the upddate can be downloaded. You can also use the "After a reconnect" trigger.
Forum: JDownloader 2 29.02.2024, 12:59
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* update before reconnect trigger :...

/*
update before reconnect
trigger : before a reconnect
*/

if (callAPI("update", "isUpdateAvailable")) {
callAPI("update", "restartAndUpdate");
}
Forum: JDownloader 2 29.02.2024, 11:03
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Package name can be anything. In the...

Package name can be anything. In the eventscripter panel you have to set the event trigger to "linkgrabber contextmenu button pressed" and then create a 'eventscripter trigger" button in the...
Forum: JDownloader 2 28.02.2024, 16:44
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Already in the script, but disabled by default....

Already in the script, but disabled by default. Google how to comment/uncomment code block in javascript.
Forum: JDownloader 2 28.02.2024, 13:54
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* remove files with matching name and size...

/*
remove files with matching name and size
trigger : click 'test run' button in the top panel
suopport: Link_not_visible
*/

var...
Forum: JDownloader 2 28.02.2024, 12:02
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* remove lower resolution trigger :...

/*
remove lower resolution
trigger : linkgrabber context menu button pressed
support : Link_not_visible
*/

if (name == "cleanup")...
Forum: JDownloader 2 26.06.2022, 14:47
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* Export settings Trigger : none ...

/*
Export settings
Trigger : none
*/

var rows = [];
var keys = [];
var file = JD_HOME + "/settings.tsv";
var settings = callAPI("config", "list", ".+", true, true, true, true);
Forum: JDownloader 2 20.06.2022, 18:25
Replies: 2,910
Views: 10,273,826
Posted By mgpai
var file = JD_HOME + "/" + new...

var file = JD_HOME + "/" + new Date().toISOString().substr(0, 19).replace(/[^\d]/g, "-") + ".tsv";




We'll see. No ETA though.



You're welcome.
Forum: JDownloader 2 20.06.2022, 14:34
Replies: 2,910
Views: 10,273,826
Posted By mgpai
No worries. The JSON file which the...

No worries.



The JSON file which the scirpt provides should have been enough for you to see things through in excel, especially since it is very well equipped to perform such tasks. So the...
Forum: JDownloader 2 20.06.2022, 11:58
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Really? That is what you took from what I wrote?

Really? That is what you took from what I wrote?
Forum: JDownloader 2 20.06.2022, 10:52
Replies: 2,910
Views: 10,273,826
Posted By mgpai
I only wish it were that simple. The db uses the...

I only wish it were that simple. The db uses the following keys, but not all keys are used in all objects. The number of keys used in an object varies between 4 and 10.

[
"abstractType",
...
Forum: JDownloader 2 18.06.2022, 12:24
Replies: 2,910
Views: 10,273,826
Posted By mgpai
The script will export the settings in JSON...

The script will export the settings in JSON format. You can use excel to import/format it.

/*
Export settings
Trigger: None
*/

var file = JD_HOME + "/settings.json";
var settings =...
Forum: JDownloader 2 18.06.2022, 12:20
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* Remove links Trigger : JDownloader...

/*
Remove links
Trigger : JDownloader Started
*/

getAllFilePackages().forEach(function(package) {
package.finished && package.downloadLinks.forEach(function(link) {
...
Forum: JDownloader 2 16.06.2022, 17:57
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Use regex (enable regex checbox fo the field): ...

Use regex (enable regex checbox fo the field):
(one\.com|two\.com|three\.com)
Forum: JDownloader 2 16.06.2022, 15:19
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Script not required. You can create/use...

Script not required. You can create/use linkgrabber filter rule:

if > sourceurl(s) > contains not > mysite.com
link origin > is > Clipboard
Forum: JDownloader 2 15.06.2022, 16:45
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* Random delay before download ...

/*
Random delay before download
Trigger : A Download Started
IMPORTANT : Enable "Synchronous execution" checkbox in the top panel
*/

var seconds = Math.floor(Math.random() * 5) + 1...
Forum: JDownloader 2 15.06.2022, 14:43
Replies: 2,910
Views: 10,273,826
Posted By mgpai
/* Rename extracted files Trigge:...

/*
Rename extracted files
Trigge: Archvie extraction finished
*/

var name = archive.name;

archive.extractedFilePaths.forEach(function(filePath) {
filePath.renameName(name + "."...
Forum: JDownloader 2 15.06.2022, 13:46
Replies: 2,910
Views: 10,273,826
Posted By mgpai
I think there are some scripts in this thread...

I think there are some scripts in this thread which could that. But, end-users may find it easier to customize it in packagizer than tweak the script. I have recommended it in the past to several...
Forum: JDownloader 2 15.06.2022, 12:52
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Is there an 'isExtracting' call/method? Have...

Is there an 'isExtracting' call/method? Have created a script which checks extraction queue. Guess that should do the job. But, THIS...
Forum: JDownloader 2 13.06.2022, 11:38
Replies: 2,910
Views: 10,273,826
Posted By mgpai
Set trigger as specified in the script: ...

Set trigger as specified in the script:
Trigger: A Download stopped




Same download location, Same name. Extension 'txt'.
Showing results 1 to 50 of 689

 
Forum Jump
All times are GMT +2. The time now is 06:10.
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.