JDownloader Community - Appwork GmbH
 

Showing results 1 to 50 of 729
Search took 0.01 seconds.
Search: Posts Made By: mgpai
Forum: Eventscripter 22.11.2024, 15:41
Replies: 3,086
Views: 11,541,297
Posted By mgpai
You're welcome. :)

You're welcome. :)
Forum: Eventscripter 22.11.2024, 09:16
Replies: 3,086
Views: 11,541,297
Posted By mgpai
While simple search/replace is possible using...

While simple search/replace is possible using packagizer or GUI, eventscripter can be used for complex/global search and replace using dictionary object.
Forum: Eventscripter 22.11.2024, 08:56
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Thanks :) Yes. ...

Thanks :)



Yes.

https://i.imgur.com/jiUw0jr.png
Forum: Eventscripter 21.11.2024, 14:27
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* modify postContentIndex property ...

/*
modify postContentIndex property
trigger : packagizer hook
*/

if (state == "BEFORE" && linkcheckDone && link.host == "kemono.su") {
link.setProperty("postContentIndex",...
Forum: Eventscripter 29.10.2024, 15:06
Replies: 3,086
Views: 11,541,297
Posted By mgpai
If you mean the script gets disabled on...

If you mean the script gets disabled on exception, you an either use it in throw/catch or use 'setDisableOnException' and "setNotifyOnException" methods to prevent it.


Yes.



You can also...
Forum: Eventscripter 29.10.2024, 12:02
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* save comment to text file trigger...

/*
save comment to text file
trigger : download finished
*/

var myHosts = ["soundcloud.com","audiocloud.com"];
var myExts = ["mp3", "jpg"];
var saveComment = function(link) {
var...
Forum: Eventscripter 29.10.2024, 10:32
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Remeber creating one, but could not find it. Let...

Remeber creating one, but could not find it. Let me know if I can be of any help with the script.
Forum: Eventscripter 25.10.2024, 10:26
Replies: 3,086
Views: 11,541,297
Posted By mgpai
I believe in taking help wherever we can get it....

I believe in taking help wherever we can get it. :)

ChatGPT can be quite useful. But those not familiar with JD API may find it confusing, since it tends to create scripts with non-existent APIs.
Forum: Eventscripter 24.10.2024, 15:19
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Most likely the user had the original (first...

Most likely the user had the original (first version) script, which does not contain any error handling

Thanks for jumping in. :)
Forum: Eventscripter 24.10.2024, 14:50
Replies: 3,086
Views: 11,541,297
Posted By mgpai
The second script (alternate version) in the...

The second script (alternate version) in the first post (Link_not_visibleof this thread, which includes error handling. I am not aware of any issues,...
Forum: Eventscripter 04.10.2024, 10:37
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Check against what? file/folder name in download...

Check against what? file/folder name in download list?
Forum: Eventscripter 03.10.2024, 07:11
Replies: 3,086
Views: 11,541,297
Posted By mgpai
updated...

updated (https://board.jdownloader.org/showpost.php?p=539417&postcount=3044)
Forum: Eventscripter 01.10.2024, 16:49
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Example links?

Example links?
Forum: Eventscripter 01.10.2024, 14:00
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Fixed?...

Fixed? (https://board.jdownloader.org/showpost.php?p=539417&postcount=3044)
Forum: Eventscripter 20.09.2024, 13:45
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* remove orphaned links trigger :...

/*
remove orphaned links
trigger : jdownloader started
*/

getAllDownloadLinks().forEach(function(link) {
link.finished && !getPath(link.downloadPath).exists() && link.remove();
})
Forum: Eventscripter 20.09.2024, 13:35
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* run external command on dowloaded file ...

/*
run external command on dowloaded file
trigger : download finished
*/


if (link.finished) {
var program = ["/path/to/myexternalprogram.exe"];
var parameters =...
Forum: Eventscripter 20.09.2024, 13:24
Replies: 3,086
Views: 11,541,297
Posted By mgpai
That script is to add the metadata to the...

That script is to add the metadata to the descriptions text file. Which field from the media metadata appears as in the OS file properties dialog?
Forum: Eventscripter 14.09.2024, 11:01
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* generate "video_duration_formatted"...

/*
generate "video_duration_formatted" property from "video_duration" property
trigger: packagizer hook
Enable "synchronous execution of script" checkbox in top panel
*/

if...
Forum: Eventscripter 07.09.2024, 17:27
Replies: 3,086
Views: 11,541,297
Posted By mgpai
callSync("cmd", "/c",...

callSync("cmd", "/c", "D:\\Test.cmd");
Forum: Eventscripter 20.08.2024, 13:59
Replies: 3,086
Views: 11,541,297
Posted By mgpai
package.downloadLinks.forEach(function(link) { ...

package.downloadLinks.forEach(function(link) {
while (
["IDLE", "RUNNING"].indexOf(link.extractionStatus) > -1
) sleep(1000);
})

//your code goes here
Forum: Eventscripter 19.08.2024, 15:56
Replies: 3,086
Views: 11,541,297
Posted By mgpai
getAllCrawledPackages().forEach(function(package)...

getAllCrawledPackages().forEach(function(package) {
var links = [];

package.downloadLinks.forEach(function(link) {
if (link.host == "myhost.com" && link.comment) {
...
Forum: Eventscripter 01.07.2024, 16:46
Replies: 3,086
Views: 11,541,297
Posted By mgpai
It is a polyfill to be used in the original code...

It is a polyfill to be used in the original code provided by you and subsequently modified by @TGU. While I can look into it, I cannot provide an ETA.
Forum: Eventscripter 25.06.2024, 08:00
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Yes. That will be useful to find/fix the error....

Yes. That will be useful to find/fix the error. You can then remove or comment out that line. Once code is fixed, you may not even need the retry loop.
Forum: Eventscripter 25.06.2024, 06:13
Replies: 3,086
Views: 11,541,297
Posted By mgpai
No. Getting a working snippet is not about TRUST....

No. Getting a working snippet is not about TRUST. It is simply means getting one which works out of the box, without having to spend time tinkering it.

Linked scriopt does not work in it its...
Forum: Eventscripter 22.06.2024, 15:26
Replies: 3,086
Views: 11,541,297
Posted By mgpai
another one ... var notified = false; var...

another one ...
var notified = false;
var count = 0;
var notify = function() {
postPage("url", "data");
}

while (!notified && count < 3) {
try {
notify();
Forum: Eventscripter 22.06.2024, 10:50
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Contains methods not supported in eventscripter. ...

Contains methods not supported in eventscripter.

ChatGPT is not a reliable source for scripts/snippets. It often mixes up languages and also picks methods/functions out of thin air. That is the...
Forum: Eventscripter 21.06.2024, 19:54
Replies: 3,086
Views: 11,541,297
Posted By mgpai
You're welcome. :)

You're welcome. :)
Forum: Eventscripter 21.06.2024, 19:52
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Will leave the original unchanged and add a new...

Will leave the original unchanged and add a new property.
Forum: Eventscripter 21.06.2024, 19:08
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Which placeholder have you used in packagier rule?

Which placeholder have you used in packagier rule?
Forum: Eventscripter 21.06.2024, 18:06
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* generate "video_duration_comma" property...

/*
generate "video_duration_comma" property
trigger : packagizer hook
Enable "synchronous execution of script" checkbox in top panel
*/

if (linkcheckDone && state == "BEFORE")...
Forum: Eventscripter 21.06.2024, 17:31
Replies: 3,086
Views: 11,541,297
Posted By mgpai
If you find a suitable JS snippet on github[gist]...

If you find a suitable JS snippet on github[gist] or stackoverflow which can do it, I can help you add it to eventscripter.
Forum: Eventscripter 31.05.2024, 16:57
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Only directhttp links can be modified in GUI....

Only directhttp links can be modified in GUI. Presently there are no eventscripter methods to do it. You can use addLinksQuery to insert new links in the same package preserving the file name,...
Forum: Eventscripter 31.05.2024, 09:31
Replies: 3,086
Views: 11,541,297
Posted By mgpai
You can use callSync and callAsync methods (check...

You can use callSync and callAsync methods (check built-in help for details) to call external programs from eventscripter.
Forum: Eventscripter 30.05.2024, 16:20
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* pad postContentIndex trigger :...

/*
pad postContentIndex
trigger : packagizer hook
*/

if (linkcheckDone && state == "BEFORE") {
var current = link.getProperty("postContentIndex");

if (current != null) {...
Forum: Eventscripter 30.05.2024, 15:18
Replies: 3,086
Views: 11,541,297
Posted By mgpai
The packagizer rule works only post url. The test...

The packagizer rule works only post url. The test url you have used is profile url. It also did not return any mega links. Email (https://board.jdownloader.org/sendmessage.php?do=mailmember&u=73437)...
Forum: Eventscripter 30.05.2024, 11:40
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Rule is applied only when adding links to JD. If...

Rule is applied only when adding links to JD. If it is still not working, post a screenshot of your packagizer rule.
Forum: Eventscripter 29.05.2024, 12:18
Replies: 3,086
Views: 11,541,297
Posted By mgpai
It does. It generates a package name from url and...

It does. It generates a package name from url and puts all files in same package/download folder.

https://i.imgur.com/ECA9N4p.png
Forum: Eventscripter 28.05.2024, 17:59
Replies: 3,086
Views: 11,541,297
Posted By mgpai
You can create a packagizer rule: if > source...

You can create a packagizer rule:
if > source url contains : kemono.su/*/user/*/post/*
then set > download directory : <jd:source:1> <jd:source:2> <jd:source:3>
then set > package name :...
Forum: Eventscripter 27.04.2024, 09:54
Replies: 3,086
Views: 11,541,297
Posted By mgpai
A toolbar button is more suitable since the...

A toolbar button is more suitable since the objects used in the script are global. The name in the toolbar button should match the name used in the script. Change the toolbar button name from the...
Forum: Eventscripter 26.04.2024, 13:19
Replies: 3,086
Views: 11,541,297
Posted By mgpai
/* disable dupes trigger : toolbar...

/*
disable dupes
trigger : toolbar button pressed
*/

if (name == "disable dupes") {
var original = [];

getAllCrawledLinks().forEach(function(link) {
var url =...
Forum: Eventscripter 18.04.2024, 14:34
Replies: 3,086
Views: 11,541,297
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: Eventscripter 18.04.2024, 14:17
Replies: 3,086
Views: 11,541,297
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: Eventscripter 18.04.2024, 13:36
Replies: 3,086
Views: 11,541,297
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: Eventscripter 18.04.2024, 12:02
Replies: 3,086
Views: 11,541,297
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: Eventscripter 17.04.2024, 16:31
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Try all of them and find out. :)

Try all of them and find out. :)
Forum: Eventscripter 17.04.2024, 16:09
Replies: 3,086
Views: 11,541,297
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: Eventscripter 17.04.2024, 13:42
Replies: 3,086
Views: 11,541,297
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: Eventscripter 17.04.2024, 12:57
Replies: 3,086
Views: 11,541,297
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: Eventscripter 09.04.2024, 15:50
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Will do. Thanks. :)

Will do. Thanks. :)
Forum: Eventscripter 09.04.2024, 13:44
Replies: 3,086
Views: 11,541,297
Posted By mgpai
Formal request for the APIs. ;)

Formal request for the APIs. ;)
Showing results 1 to 50 of 729

 
Forum Jump
All times are GMT +2. The time now is 13:54.
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 - 2025, Jelsoft Enterprises Ltd.