#2161
|
|||
|
|||
![]() |
#2162
|
|||
|
|||
![]()
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. |
#2163
|
|||
|
|||
![]()
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:
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); } } Setting collors not (yet) supported in eventscripter. |
#2164
|
|||
|
|||
![]() Quote:
Unfortunately I am not abel to, I always get a wrong option: ![]() Great, many thanks for the edition! Quote:
__________________
Aktuelles Windows |
#2165
|
|||
|
|||
![]()
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.
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. No such options currently exist. |
#2166
|
|||
|
|||
![]() Quote:
Quote:
Looks so now: ![]() After clicking the new button this is shown: ![]() I clicked OK and nothing seems to happen. Quote:
__________________
Aktuelles Windows |
#2167
|
|||
|
|||
![]()
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? |
#2168
|
||||
|
||||
![]()
@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. |
#2169
|
|||
|
|||
![]()
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 |
#2170
|
||||
|
||||
![]()
@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 |
#2171
|
|||
|
|||
![]() Quote:
![]() |
#2172
|
|||
|
|||
![]()
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 |
#2173
|
||||
|
||||
![]()
@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 |
#2174
|
|||
|
|||
![]()
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. |
#2175
|
||||
|
||||
![]()
@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 |
#2176
|
|||
|
|||
![]() Quote:
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. |
#2177
|
|||
|
|||
![]() Quote:
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, []); } |
#2178
|
|||
|
|||
![]() Quote:
Thank you so much for quick reply, mgpai. |
#2179
|
|||
|
|||
![]()
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. |
#2180
|
|||
|
|||
![]()
Anyway to fix HLS stream broken? for vidmoly.to.
it use to download without any problem now it's not downloading anything. |
![]() |
Thread Tools | |
Display Modes | |
|
|