JDownloader Community - Appwork GmbH
 

Showing results 1 to 50 of 1000
Search took 0.03 seconds.
Search: Posts Made By: mgpai
Forum: JDownloader 2 26.06.2022, 14:47
Replies: 2,435
Views: 1,156,978
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: Wünsche 24.06.2022, 12:39
Replies: 26
Views: 2,057
Posted By mgpai
As already explained in my reply. At least the...

As already explained in my reply. At least the version of excel I am using modifies the format of JSON string and hence fails on import.
Forum: Wünsche 23.06.2022, 15:17
Replies: 26
Views: 2,057
Posted By mgpai
@Jiaz: I was able to import settings which have...

@Jiaz: I was able to import settings which have simple strings as values, but not ones with key/pair values. JSON parse throws an error. Saving/exporting file in JSON format from excel might help.
Forum: Suggestions & Requests 22.06.2022, 19:58
Replies: 16
Views: 1,873
Posted By mgpai
Meant without having to repeat/typing the...

Meant without having to repeat/typing the placeholder names multiple times.
[*video_id*]-*video_id*[/*video_id*]


Something which remains same across all placholders?

Example:
-*video_id*...
Forum: Suggestions & Requests 22.06.2022, 19:00
Replies: 16
Views: 1,873
Posted By mgpai
@Jiaz: Remembering syntax or tag names ...

@Jiaz: Remembering syntax or tag names corresponding to each placeholder is a tough ask. Perhaps a uniform syntax for all placeholders, without using tag names?

FYI for if/else, foobar uses:
...
Forum: Suggestions & Requests 22.06.2022, 18:17
Replies: 16
Views: 1,873
Posted By mgpai
@Jiaz: Implementation in foobar audio player: ...

@Jiaz: Implementation in foobar audio player:

Filename:
song name.mp3


Titleformat:
%filename%[- %artist%].%filename_ext%
Forum: JDownloader 2 20.06.2022, 18:25
Replies: 2,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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,435
Views: 1,156,978
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 15.06.2022, 09:17
Replies: 22
Views: 1,929
Posted By mgpai
@Jiaz: Glad you think so. :) /* ...

@Jiaz: Glad you think so. :)



/*
Change Shutdown mode
Trigger: Toolbar button pressed
*/

/*
Forum: General Discussion 14.06.2022, 15:22
Replies: 11
Views: 1,397
Posted By mgpai
I haven't used any, but a search for 'bb code...

I haven't used any, but a search for 'bb code editor' returned several results to online/offline editors with live preview. I think some popular word processors also have plugins for that.
Forum: JDownloader 2 14.06.2022, 14:16
Replies: 3
Views: 555
Posted By mgpai
To always/automatically move finished packages to...

To always/automatically move finished packages to top, you will have to use a script.
Forum: JDownloader 2 14.06.2022, 13:26
Replies: 22
Views: 1,929
Posted By mgpai
/* Change Shutdown mode Trigger:...

/*
Change Shutdown mode
Trigger: Toolbar button pressed
*/

/*
Cusomize toolbar > Create a new "Eventscripter Trigger" button > Rename it to "Close JD" > Change Icon
*/

if (name...
Forum: JDownloader 2 14.06.2022, 12:46
Replies: 22
Views: 1,929
Posted By mgpai
Yes. It's there is the settings list. Does not...

Yes. It's there is the settings list. Does not exist in my list on disk, which If found was quite outdated (Jan 2020).

Can provide a script, but will have to use simple buttons.
Forum: JDownloader 2 14.06.2022, 12:29
Replies: 22
Views: 1,929
Posted By mgpai
Had already checked before I first replied to...

Had already checked before I first replied to this thread. Couldn't find any API call to modify the "shutdownmode" property using eventscripter. Only possible to enable/disable the extension.
...
Forum: JDownloader 2 13.06.2022, 11:38
Replies: 2,435
Views: 1,156,978
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'.
Forum: JDownloader 2 13.06.2022, 08:57
Replies: 2,435
Views: 1,156,978
Posted By mgpai
/* Save direct links to text Trigger:...

/*
Save direct links to text
Trigger: A Download stopped
*/

if (link.downloadHost == "vk.com") {
var directLink = link.getProperty("picturedirectlink") ||...
Forum: JDownloader 2 13.06.2022, 07:56
Replies: 2,435
Views: 1,156,978
Posted By mgpai
Synchronous execution cannot be enabled (gets...

Synchronous execution cannot be enabled (gets unchecked on save).
Forum: Suggestions & Requests 12.06.2022, 17:17
Replies: 56
Views: 2,743
Posted By mgpai
I think it will also be useful to members who...

I think it will also be useful to members who want to help each other out, but like @StefanM said, "Well, it's your forum".
Forum: General Discussion 12.06.2022, 16:48
Replies: 25
Views: 1,771
Posted By mgpai
@StefanM: You can use a script (similar to the...

@StefanM: You can use a script (similar to the update notifier) to track and automatically open unread logs.
Forum: Suggestions & Requests 12.06.2022, 15:51
Replies: 56
Views: 2,743
Posted By mgpai
Hear you. Loud and clear. ;)

Hear you. Loud and clear. ;)
Forum: Suggestions & Requests 12.06.2022, 15:28
Replies: 56
Views: 2,743
Posted By mgpai
Attaching them requires the images to be saved to...

Attaching them requires the images to be saved to the disk first. Also, for such a simple task we should not have to use a 3rd party software. We should be able to use print screen to copy it to the...
Forum: General Discussion 12.06.2022, 13:03
Replies: 25
Views: 1,771
Posted By mgpai
Were any new/test scripts active at that time?...

Were any new/test scripts active at that time? Scripts with sync. execution can block downloads.
Forum: General Discussion 12.06.2022, 12:28
Replies: 25
Views: 1,771
Posted By mgpai
Jdownloader\logs\updatehistory

Jdownloader\logs\updatehistory
Forum: JDownloader 2 12.06.2022, 11:51
Replies: 2,435
Views: 1,156,978
Posted By mgpai
Just checked, 'package finshed' trigger also...

Just checked, 'package finshed' trigger also returns a link object, which returns the the download folder correctly, if "Remove finished downloads" is not enabled. If however the "Remove finished...
Forum: JDownloader 2 12.06.2022, 10:40
Replies: 2,435
Views: 1,156,978
Posted By mgpai
"Package finished" trigger does not return 'link'...

"Package finished" trigger does not return 'link' object. You have to use:

package.getDownloadFolder()
Forum: JDownloader 2 12.06.2022, 10:18
Replies: 22
Views: 1,929
Posted By mgpai
@Jiaz: Talking about "CLOSE" and "SHUTDOWN"...

@Jiaz: Talking about "CLOSE" and "SHUTDOWN" values in (org.jdownloader.extensions.shutdown.ShutdownExtension.json). Currently user has to open the "JD Shutdown" extension to view/change them. Hope I...
Forum: JDownloader 2 12.06.2022, 09:39
Replies: 22
Views: 1,929
Posted By mgpai
@Jiaz:Think OP wants separate buttons on toolbar...

@Jiaz:Think OP wants separate buttons on toolbar which gives the option to either Close JD or Shutdown PC, when the downloads are finished.
Forum: JDownloader 2 12.06.2022, 09:02
Replies: 22
Views: 1,929
Posted By mgpai
JD Shutdown > Mode > Shutdown JD Shutdown >...

JD Shutdown > Mode > Shutdown
JD Shutdown > Mode > Close JDownloader
Forum: JDownloader 2 12.06.2022, 07:58
Replies: 2,435
Views: 1,156,978
Posted By mgpai
link.getDownloadPath returns the full path...

link.getDownloadPath returns the full path (folder + filename). Also, the syntax is incorrect. Should be link.getDownloadPath().

To get only the download folder use: ...
Forum: JDownloader 2 10.06.2022, 19:02
Replies: 2,435
Views: 1,156,978
Posted By mgpai
Was caused by a recent update. Has been fixed...

Was caused by a recent update. Has been fixed (Link_not_visibleby @Jiaz. Update JD (if you haven't already).
Forum: JDownloader 2 10.06.2022, 12:48
Replies: 2,435
Views: 1,156,978
Posted By mgpai
Most likely my initial assumptions were correct,...

Most likely my initial assumptions were correct, because the packagizer link object is available only after all online checks have been performed. From what I can see it performs all requests related...
Forum: JDownloader 2 10.06.2022, 09:54
Replies: 2,435
Views: 1,156,978
Posted By mgpai
new Date().toISOString().replace("Z",...

new Date().toISOString().replace("Z", "").replace(/[^\d]/g, "-")
JD_HOME + "/"
can be replaced with any folder (existing) string. For example:
"d:/my folder/"
Insert after 'writeFile...' line:...
Forum: JDownloader 2 09.06.2022, 16:52
Replies: 2,435
Views: 1,156,978
Posted By mgpai
You will have to use external programs which...

You will have to use external programs which support CLI and call it in eventscripter. If you need help adding them to a script, post the terminal commands which you are currently using.
Forum: JDownloader 2 09.06.2022, 16:48
Replies: 2,435
Views: 1,156,978
Posted By mgpai
Wasn't aware of this. Good to know. :) ...

Wasn't aware of this. Good to know. :)



It is indeed difficult to create a one-size-fits-all script for edge cases.
Forum: JDownloader 2 09.06.2022, 16:42
Replies: 2,435
Views: 1,156,978
Posted By mgpai
No. Some are in github/gitlab repos, but most of...

No. Some are in github/gitlab repos, but most of them are in the forum.

Since we cannot post any urls or upload any files in the forum, perhaps JD team can host an official repo to share scripts,...
Forum: JDownloader 2 09.06.2022, 16:25
Replies: 2,435
Views: 1,156,978
Posted By mgpai
A. Only possible with downloads or while feeding...

A. Only possible with downloads or while feeding origin links.
B. Eventscripter does not have access to crawling process.
C. Can use sleep. (Will post example script when @Jiaz adds the new method)...
Forum: JDownloader 2 09.06.2022, 16:04
Replies: 2,435
Views: 1,156,978
Posted By mgpai
A file in 'timestamp.tsv' format will be created...

A file in 'timestamp.tsv' format will be created in JD folder. Example (j:\Apps\Jdownloader\1654782759265.tsv)
var file = JD_HOME + "/" + Date.now() + ".tsv";


It is also possible to create a...
Forum: JDownloader 2 09.06.2022, 15:23
Replies: 2,435
Views: 1,156,978
Posted By mgpai
if > filename > contains : *_delete* then set >...

if > filename > contains : *_delete*
then set > file name > <jd:orgfilename:1><jd:orgfilename:2>
Forum: Suggestions & Requests 09.06.2022, 15:15
Replies: 59
Views: 3,681
Posted By mgpai
Script tracks the versions by storing them in...

Script tracks the versions by storing them in "JD\revisions.txt". If the current version number is not present in that file, it will add it to that file and display an alert, which is what happened...
Forum: Suggestions & Requests 09.06.2022, 13:44
Replies: 59
Views: 3,681
Posted By mgpai
You can modify THIS...

You can modify THIS (Link_not_visiblescript to get an alert.

Replace:
callAPI("system", "restartJD");

with:
alert("" + revision);
Showing results 1 to 50 of 1000

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