JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #2161  
Old 29.04.2022, 16:26
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Dockel View Post
... add a button / menu item .... in the Menu Customizer...
Reply With Quote
  #2162  
Old 29.04.2022, 19:50
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 700
Default

Ah, that is great! Many thanks!

I did some mistake, I have it like this now:


But nothing happens.

Could the script automatically open the htm file in the standard browser / JD uses for the capchas?

And could it mark (e.g. with another color) the items being duplicates by size?
__________________
Aktuelles Windows

Last edited by Dockel; 29.04.2022 at 19:53.
Reply With Quote
  #2163  
Old 30.04.2022, 10:41
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Dockel View Post
... nothing happens.
Screenshot shows you have added the button to the context menu. Add it to the main toolbar. Also note, you can change the position of the button using drag 'n' drop after adding it.

Quote:
Originally Posted by Dockel View Post
Could the script automatically open the htm file in the standard browser / JD uses for the capchas?
Good Idea!

Code:
/*
    List dupes by size
    Trigger : Toolbar button
*/

if (name == "List dupes by size") {
    var file = getPath(JD_HOME + "/tmp/dupes_by_size.htm");
    var group = {};
    var output = "";

    getAllDownloadLinks().forEach(function(link) {
        var size = link.bytesTotal
        var name = link.package.name + " - " + link.name;

        group[size] = group[size] || [];
        group[size].push(name)

    })

    for (x in group) {
        var names = group[x];

        if (names.length > 0) {
            output += x + "\r\n\t";
            output += names.sort().join("\n\t")
            output += "\r\n\r\n"
        }
    }

    if (output) {
        file.delete();
        output = "<pre>" + output + "</pre>";
        writeFile(file, output, false);
        openURL("file://" + file);
    }
}

Quote:
Originally Posted by Dockel View Post
And could it mark (e.g. with another color) the items being duplicates by size?
Setting collors not (yet) supported in eventscripter.
Reply With Quote
  #2164  
Old 30.04.2022, 11:05
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 700
Default

Quote:
Screenshot shows you have added the button to the context menu. Add it to the main toolbar.
So it does not work in the context menu?

Unfortunately I am not abel to, I always get a wrong option:


Great, many thanks for the edition!

Quote:
Setting collors not (yet) supported in eventscripter.
Or bold, underlined, italic or with bigger letters or else?
__________________
Aktuelles Windows
Reply With Quote
  #2165  
Old 30.04.2022, 11:20
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Dockel View Post
So it does not work in the context menu?
It can also work with context menu button, but you will have to it also set it as trigger in the eventscripter drop down panel. Context menu scripts are normally used when working with link/package selection. In this case, toolbar button in more suitable.

Quote:
Originally Posted by Dockel View Post
Unfortunately I am not abel to, I always get a wrong option:
You have to add Eventscripter Trigger button NOT Eventscripter button. Former is used to execute scripts, while the latter is used to enable/disable the extension.

Quote:
Originally Posted by Dockel View Post
Or bold, underlined, italic or with bigger letters or else?
No such options currently exist.
Reply With Quote
  #2166  
Old 30.04.2022, 11:38
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 700
Default

Quote:
It can also work with context menu button, but you will have to it also set it as trigger in the eventscripter drop down panel. Context menu scripts are normally used when working with link/package selection. In this case, toolbar button in more suitable.
OK, so one cannot mark one or more packages and get the sizes sorted only of those files. Always the entire downloadlist. Good.

Quote:
You have to add Eventscripter Trigger button NOT Eventscripter button. Former is used to execute scripts, while the latter is used to enable/disable the extension.
Ah, very sorry!

Looks so now:


After clicking the new button this is shown:


I clicked OK and nothing seems to happen.

Quote:
No such options currently exist.
Or a linke above and under the dupes? Or an empty line. Or additional signs, an arrow, a ##### or ++++++ or >>>>>> or -------- or an indentation or else?
__________________
Aktuelles Windows
Reply With Quote
  #2167  
Old 01.05.2022, 13:16
makeszerosense makeszerosense is offline
I will play nice!
 
Join Date: Apr 2021
Posts: 2
Default Change ‘Gateway’ to show domain only

Hi,
I’ve never used Event Scripter before, I’m willing to learn though.

I use proxies that require username and password.

By default JDownloader displays the following in the ‘Gateway’ tab in the ‘Downloads’ section when I use a proxy:

<username>:<redacted-password>@subdomain.mydomain.com

This is fine for most users, however, my username and passwords are a huge string of characters. The problem is that I have to make the ‘Gateway’ tab very big and it takes up all of the space.

I would like the ‘Gateway’ tab to display the following instead:
Subdomain.mydomain.com

I don’t want it to show my huge username, or even the asterisk, which it displays as the password.

Can this be done? Any ideas on what I should be looking at changing?
Reply With Quote
  #2168  
Old 02.05.2022, 11:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@makeszerosense: I will change it to only contain host and not contain user/pass(asterisk) at all. Wait for next core update
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 02.05.2022 at 12:05.
Reply With Quote
  #2169  
Old 02.05.2022, 23:25
MKey MKey is offline
Registered / Inactive
 
Join Date: Apr 2022
Posts: 6
Default

Hi,
I have a very simple question, but I did not find the answer.
Is it possible to save the contents of the clipboard in the comment field when capturing links
Thanks
Reply With Quote
  #2170  
Old 03.05.2022, 12:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@MKey: Not out-of-the-box and also not recommended as it would not be the expected result. JDownloader parses the clipboard in several flavors and parses them all, so clipboard contains String representation, HTML representation, HTML selection...
Also this would increase memory usage alot!
What exactly do you have in mind? What do you really want from clipboard?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2171  
Old 04.05.2022, 18:43
makeszerosense makeszerosense is offline
I will play nice!
 
Join Date: Apr 2021
Posts: 2
Default

Quote:
Originally Posted by Jiaz View Post
@makeszerosense: I will change it to only contain host and not contain user/pass(asterisk) at all. Wait for next core update
Amazing. Thank you
Reply With Quote
  #2172  
Old 05.05.2022, 12:17
MKey MKey is offline
Registered / Inactive
 
Join Date: Apr 2022
Posts: 6
Default

Sorry for a long time did not come in.
When copying links to the clipboard, I also copy information with the description
And I would like this description to be attached to the package or link
Thanks
Reply With Quote
  #2173  
Old 05.05.2022, 12:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@MKey: hmm, in what format do you copy the information? you could for example add the information as anchor and similiar to this https://support.jdownloader.org/Know...ame-via-anchor but modify comment instead of name
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2174  
Old 06.05.2022, 15:39
MKey MKey is offline
Registered / Inactive
 
Join Date: Apr 2022
Posts: 6
Default

Thanks, this is not exactly what I need, but you gave me an idea, I'll try to do something with crawljob files.
But it would be great if you could add one more variable Event Scripter something like "getclipboard".
Thanks again.
Reply With Quote
  #2175  
Old 06.05.2022, 15:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@MKey: you can access the CrawlerJobSandbox object and there you have getText() method which contains the clipboard content that is used for that round. For example you can create a script for "Packagizer Hook", myPackagizerLink.getCrawledLink().getSourceJob()
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2176  
Old 08.05.2022, 17:20
TomNguyen TomNguyen is offline
DSL Light User
 
Join Date: Jul 2017
Posts: 33
Default

Quote:
Originally Posted by mgpai View Post
It is possible to create a script to move the finished links to a different package, but you may need to disable "GeneralSettings.movefilesifdownloaddestinationchangesenabled" in advanced settings. Else, the files on disk will also be moved, if the source and destination package ("Already Downloaded") download folders are different.



A better option would be to remove the links from the list by matching the finished date. Following script can be used to remove finished links which are older than 'x' days.

Caution: This script will remove links from the download list

Code:
// Remove finished links older than 'x' days
// Trigger : JDownloader Started

var days = 365; //<- Days to keep the finished links in list

var now = new Date();
var duration = days * 24 * 60 * 60 * 1000;

callAPI("downloadsV2", "queryLinks", {
    "finishedDate": true
}).filter(function(link) {
    return link.finishedDate;
}).forEach(function(link) {
    if (now - link.finishedDate > duration) getDownloadLinkByUUID(link.uuid).remove();
})
Dear mgpai,
Could you please help modify this script to delete all links that older than 365 days (not only delete finished links, but also delete skipped links, temporarily unavailable links, server errors 403 links,... )
I want to clear all old links so Jdownloader run faster. Thank you!

Last edited by TomNguyen; 08.05.2022 at 18:01.
Reply With Quote
  #2177  
Old 08.05.2022, 18:15
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by TomNguyen View Post
... modify this script to delete all links that older than 365 days ...
Hello TomNguyen.

Code:
/*
    Remove old links
    Trigger : JDownloader Started
*/

var days = 365;

var now = new Date();
var cutoff = days * 24 * 60 * 60 * 1000;
var linkIds = [];

getAllDownloadLinks().forEach(function(link) {
    if (now - link.addedDate > cutoff) {
        linkIds.push(link.UUID);
    }
})

if (linkIds.length) {
    callAPI("downloadsV2", "removeLinks", linkIds, []);
}
Reply With Quote
  #2178  
Old 08.05.2022, 18:46
TomNguyen TomNguyen is offline
DSL Light User
 
Join Date: Jul 2017
Posts: 33
Default

Quote:
Originally Posted by mgpai View Post
Hello TomNguyen.

Code:
/*
    Remove old links
    Trigger : JDownloader Started
*/

var days = 365;

var now = new Date();
var cutoff = days * 24 * 60 * 60 * 1000;
var linkIds = [];

getAllDownloadLinks().forEach(function(link) {
    if (now - link.addedDate > cutoff) {
        linkIds.push(link.UUID);
    }
})

if (linkIds.length) {
    callAPI("downloadsV2", "removeLinks", linkIds, []);
}
It works great!
Thank you so much for quick reply, mgpai.
Reply With Quote
  #2179  
Old 13.05.2022, 12:59
Murxx Murxx is offline
Wind Gust
 
Join Date: Nov 2020
Posts: 44
Default

Jiaz empfahl mir hier zu schreiben:

Das Problem ist in folgendem Test kurz beschrieben. Für einen Profi sicher schnell und einfach lösbar.
Danke im Voraus!

Falls ein Paket aus mindestens zwei Teilen (files) besteht, sollte es aufgeklappt erscheinen, damit alle "Teile" sichtbar sind.
Bei nur einem enthaltenen Link reicht die Anzeige des Paketnamens völlig aus.

So hatte ich das immer gehandhabt.
Beim Hinzufügen neuer Links habe ich das immer so eingestellt.

Urplötzlich änderte sich (warum auch immer, ich weiß es nicht) die Situation und jetzt habe ich das beschriebene Problem, würde aber gerne zurück.
Macht der Gewohnheit!

Es soll ja nur bei Paketen mit mindestens zwei Links passieren.

Falls ihr hier helfen könnt wäre ich euch ewig dafür dankbar.

Edit by Jiaz: Reference https://board.jdownloader.org/showthread.php?t=90573

Last edited by Jiaz; 13.05.2022 at 14:22.
Reply With Quote
  #2180  
Old 13.05.2022, 13:20
Wolfin2010 Wolfin2010 is offline
Baby Loader
 
Join Date: May 2022
Posts: 5
Question

Anyway to fix HLS stream broken? for vidmoly.to.

it use to download without any problem now it's not downloading anything.
Reply With Quote
  #2181  
Old 13.05.2022, 13:27
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,927
Default

@Wolfin2010
You're wrong in this thread!
Please report this issue in this subforum and provide all required details such as a problem description, example links and a log.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #2182  
Old 13.05.2022, 17:33
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Murxx View Post
Falls ein Paket aus mindestens zwei Teilen (files) besteht, sollte es aufgeklappt erscheinen, damit alle "Teile" sichtbar sind.
Bei nur einem enthaltenen Link reicht die Anzeige des Paketnamens völlig aus.
The script currently runs on JDownloader start and checks and expands/collapses packages based on your criteria. You can also use a different event trigger or custom button, if you want to run it more frequently.

Code:
/*
    Set package expanded state
    Trigger : JDownloader Started
*/


getAllFilePackages().forEach(function(package) {
    var single = package.downloadLinks.length == 1;

    single && package.expanded && package.setExpanded(false);
    !single && !package.expanded && package.setExpanded(true);
})
Reply With Quote
  #2183  
Old 15.05.2022, 01:58
DragoBleaPiece DragoBleaPiece is offline
Registered / Inactive
 
Join Date: Jun 2020
Posts: 7
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    List dupes by size
    Trigger : Toolbar button
*/

if (name == "List dupes by size") {
    var file = getPath(JD_HOME + "/tmp/dupes_by_size.htm");
    var group = {};
    var output = "";

    getAllDownloadLinks().forEach(function(link) {
        var size = link.bytesTotal
        var name = link.package.name + " - " + link.name;

        group[size] = group[size] || [];
        group[size].push(name)

    })

    for (x in group) {
        var names = group[x];

        if (names.length > 0) {
            output += x + "\r\n\t";
            output += names.sort().join("\n\t")
            output += "\r\n\r\n"
        }
    }

    if (output) {
        file.delete();
        output = "<pre>" + output + "</pre>";
        writeFile(file, output, false);
        openURL("file://" + file);
    }
}
Hi, @mgpai!
Is it possible if we grouped the links of the same size into a specified folder in the linkgrabber? For the folder name, maybe can just use the name file from the first link checked. Also is there another way to check duplicates beside of the file name and the file size?
Thank you
Reply With Quote
  #2184  
Old 15.05.2022, 08:22
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by DragoBleaPiece View Post
Hi, @mgpai!
Is it possible if we grouped the links of the same size into a specified folder in the linkgrabber? For the folder name, maybe can just use the name file from the first link checked.
I am guessing you mean when the links are originally added to JD.

Grouping only by size can break multi-part archives. Links belonging to different archives could end up (wrongly) in the same package. JD already tries to detect mirrors and group them in the same package. This auto-grouping feature can break if the package name is set by a custom rule.

Can you provide any example url where you want the resulting links to be grouped in the same package, but they currently end up in separate packages?

Quote:
Originally Posted by DragoBleaPiece View Post
Also is there another way to check duplicates beside of the file name and the file size?
Checksums can also be used, but unfortunately not all hosters provide them. In some cases, grouping the links by container url (originating from same url) may help.
Reply With Quote
  #2185  
Old 16.05.2022, 21:39
steveallen steveallen is offline
Registered / Inactive
 
Join Date: Apr 2020
Posts: 18
Default script: Move finished non-archive files, to user defined folder

In the following script:
- Is there a way to get the "PackageName" path ( instead each links path...) and move the complete PackageName ?
( in other words, move the complete sub-folder packagename )

( The below script works but the subfolder(PackageName ...package sub folder is not moved. Only files inside package are moved to destfolder.
So I am looking to find a solution to get move the complete package...)

Thanks in advance


Code:

// Move finished non-archive files, to user defined folder
// Trigger required: "A Download Stopped"

var destFolder = "D:/Jdl_Finished_packages";

if (link.isFinished() && !link.getArchive()) {
getPath(link.getDownloadPath()).moveTo(destFolder);
}
Reply With Quote
  #2186  
Old 26.05.2022, 11:13
RedNapalm RedNapalm is offline
Ultra Loader
 
Join Date: Dec 2017
Posts: 48
Default

Hey I need a script that'll copy and paste the source URL to comments since we can't search through URLs. Thanks!
Reply With Quote
  #2187  
Old 26.05.2022, 18:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@RedNapalm: what *source URL* are you referring to? In JDownloader there are several sources known, see https://support.jdownloader.org/Know...iew-added-urls
eg source can be the browser tab URL, also can be the container url or the linkshortener.
can you explain what you have in mind/what you're trying to achieve, then we can help you better.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2188  
Old 26.05.2022, 19:17
onyhow onyhow is offline
Modem User
 
Join Date: May 2022
Posts: 4
Default

Um, hi. I would like to ask for a script that would insert a folder into mega.nz folder structure if possible.

Specifically, what I'm trying to download from mega is structured in a\b\c\d. I want to insert a folder and make it like this: a\INSERT FOLDER HERE\b\c\d. The name there will be a static folder name.

Is that possible?

Thank you.
Reply With Quote
  #2189  
Old 27.05.2022, 10:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@mgpai: see my idea https://board.jdownloader.org/showpo...36&postcount=2 for @onyhow
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2190  
Old 30.05.2022, 11:33
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by onyhow View Post
... insert a folder into mega.nz folder structure ...
Code:
/*
    Set download folder
    Trigger: Packagizer Hook
*/    

if (state == "AFTER" && link.host == "mega.co.nz") {
    var insert = "string";
    var folder = link.downloadFolder.split("/");

    folder.splice(1, 0, insert);
    link.downloadFolder = folder.join("/");
}
Reply With Quote
  #2191  
Old 30.05.2022, 11:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@mgpai: don't you have to reassign to folder?
Quote:
folder=folder.splice(1, 0, insert);
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2192  
Old 30.05.2022, 11:49
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Jiaz View Post
@mgpai: don't you have to reassign to folder?
No. The splice() method overwrites the original array.
Reply With Quote
  #2193  
Old 30.05.2022, 11:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

Quote:
Originally Posted by mgpai View Post
No. The splice() method overwrites the original array.
Once reason why I ...don't like it :p
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2194  
Old 31.05.2022, 17:27
TomNguyen TomNguyen is offline
DSL Light User
 
Join Date: Jul 2017
Posts: 33
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Randomize download order
    Trigger: Download controller started
*/

var index, priorities = ["HIGHEST", "HIGHER", "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST"];

getAllDownloadLinks().forEach(function(link) {
    if (!link.finshed) {
        index = Math.floor(Math.random() * priorities.length);
        link.priority = priorities[index];
    }
})
Dear mgpai,
Could you please help modify this script to give HIGHEST priority for files smaller than 100MB (and if possible, give HIGHER priority for files size from 100MB to 1GB), then other files (bigger than 1GB) are random download order (random "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST" priorities).
I want Jdownloader to download small files such as ebooks and audio files first, then movie later. Downloading big file take long wait time, especially with free download, so it would be great to get the big files later when all other small files have been downloaded.
Thank you!

Last edited by TomNguyen; 31.05.2022 at 18:05.
Reply With Quote
  #2195  
Old 31.05.2022, 18:48
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by TomNguyen View Post
... give HIGHEST priority for files smaller than 100MB (and if possible, give HIGHER priority for files size from 100MB to 1GB), then other files (bigger than 1GB) are random download order (random "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST" priorities)...
Hi @ TomNguyen,

Code:
/*
    Set priority
    Trigger: Download controller started
*/

getAllDownloadLinks().forEach(function(link) {
    if (!link.finished && link.bytesTotal > -1) {
        var size = link.bytesTotal / 1e6;
        var priority = size < 100 ? "HIGHEST" : size < 1000 ? "HIGHER" : random();

        link.priority != priority && (link.priority = priority);
    }
})

function random() {
    var array = ["HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST"];
    var index = Math.floor(Math.random() * array.length);

    return array[index];
}
Reply With Quote
  #2196  
Old 31.05.2022, 19:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@mgpai: mgpai shooting scripts as it's "The Easiest Thing in the World"
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2197  
Old 01.06.2022, 03:47
TomNguyen TomNguyen is offline
DSL Light User
 
Join Date: Jul 2017
Posts: 33
Default

Quote:
Originally Posted by mgpai View Post
Hi @ TomNguyen,

Code:
/*
    Set priority
    Trigger: Download controller started
*/

getAllDownloadLinks().forEach(function(link) {
    if (!link.finished && link.bytesTotal > -1) {
        var size = link.bytesTotal / 1e6;
        var priority = size < 100 ? "HIGHEST" : size < 1000 ? "HIGHER" : random();

        link.priority != priority && (link.priority = priority);
    }
})

function random() {
    var array = ["HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST"];
    var index = Math.floor(Math.random() * array.length);

    return array[index];
}

It works great, script master!

Quote:
Originally Posted by Jiaz View Post
@mgpai: mgpai shooting scripts as it's "The Easiest Thing in the World"
Exactly what I wanted to say.
Thanks again, mgpai!
Reply With Quote
  #2198  
Old 01.06.2022, 12:28
onyhow onyhow is offline
Modem User
 
Join Date: May 2022
Posts: 4
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Set download folder
    Trigger: Packagizer Hook
*/    

if (state == "AFTER" && link.host == "mega.co.nz") {
    var insert = "string";
    var folder = link.downloadFolder.split("/");

    folder.splice(1, 0, insert);
    link.downloadFolder = folder.join("/");
}
Thanks, will try!

Update: It works! Thanks!

Last edited by onyhow; 01.06.2022 at 16:37. Reason: Update
Reply With Quote
  #2199  
Old 03.06.2022, 16:02
Tomrich Tomrich is offline
Wind Gust
 
Join Date: Aug 2020
Posts: 43
Default

my sc card crashed a few days ago and i had to restore an backup from 2021 where i used jdownloader without event scripter. now i can't install/enable it. i opened the webinterface of my jdownloader headless install (raspberry pi 3) and clicked to "install". now it loading and loading and loading. jdownloader was updated and restarted before.

can i install/enable event scripter using the command line?
Reply With Quote
  #2200  
Old 03.06.2022, 17:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,996
Default

@Tomrich: I would recommend to check/fix the installation, see https://support.jdownloader.org/Know...r-installation
then install the eventscripter via webinterface , hit the button, and then restart JDownloader
__________________
JD-Dev & Server-Admin
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 00: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 - 2024, Jelsoft Enterprises Ltd.