JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #2461  
Old 10.10.2022, 16:11
jaydeeownluder jaydeeownluder is offline
Tera Loader
 
Join Date: Dec 2010
Location: kölle
Posts: 175
Default

Quote:
Originally Posted by pspzockerscene View Post
Bedenke, dass du die Dateigrößenangaben dann halt ggf. selbst nicht mehr lesen kannst.
Ja 8-]

Das geht echt nicht mehr. Seit den ersten Jahren der 2000er habe ich keine Bytes mehr umgerechnet, ergo ist mein Strang im Hirn verkümmert und ich habe mich ausserdem an die praktische automatische Umrechnung gewöhnt.

Dank euch, dann mach ich das weiter von Hand...
Reply With Quote
  #2462  
Old 10.10.2022, 16:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,045
Default

Quote:
Originally Posted by jaydeeownluder View Post
Dank euch, dann mach ich das weiter von Hand...
Vielleicht findet mgpai ja irgendwann Zeit dafür.
Umrechnen und danach sortieren dürfte das Script um einiges komplexer machen als es gerade ist
__________________
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
  #2463  
Old 14.10.2022, 19:18
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Hallo zusammen

Ich würde mich gerne diesem Kommentar anschliessen

Quote:
Hello folks,
I would like to move a package after downloading (and automatically unpacking) to another directory, e.g. for a video download the whole folder including content.
Can anyone help me?
Spoiler:
var source = "c:\\downloading";
var destination = "d:\\finished";

archive.extractedFilePaths.forEach(function(filePath) {
var newFolder = filePath.parent.toString().replace(source,destination);
filePath.moveTo(newFolder);
})


Könnte jemand von euch den Code so anpassen, dass die Datei Filmbeispiel.avi aus dem Unterordner Beispielfilm in ein gewähltes Verzeichnis (Beispielverzeichnis) verschoben wird. Ich habe es bereits mit "getchildren" versucht, kriege aber die richtige Syntax nicht hin.

Da wäre ich und viele andere sehr dankbar. Und ein grosses Dankeschön im Vorraus.

R:\extracted\Beispielfilm\Filmbeispiel.avi
R:\Beispielverzeichnis

Mein aktueller Code:
Spoiler:
var source = "R:\extracted";
var destination = "R:\Beispielverzeichnis";

archive.extractedFilePaths.forEach(function(filePath) {
var newFolder = filePath.children.toString().replace(source,destination);
filePath.moveTo(newFolder);
})
Reply With Quote
  #2464  
Old 14.10.2022, 19:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

@GTAINGLHERR: Das sollte auch ohne Skript über den Packagizer möglich sein. Dort eine Regel erstellen und dann als Bedingung dein FilmBeispiel.avi und unten dann *Move to/Verschieben nach*. Hast du das mal ausprobiert?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2465  
Old 14.10.2022, 21:42
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Danke für die schnelle Antwort.
Das hab ich ausprobiert. Im Pakerverwalter steht: Das verschieben nach, wird nur auf entpackte Dateien angewandt. Schön, aber meine entpackten Dateien liegen eine Ebene tiefer, nämlich in einem Ordner und da greift die Regel nicht.
Bsp:
Beispiel.rar -> Beispielordner ->-> Beispieldatei.avi
Reply With Quote
  #2466  
Old 14.10.2022, 22:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

@GTAINGLHERR: Beispiel.rar passt ja nicht Die Regel muss natürlich auf deine entpackte Dateien *passen*. Zeig mal nen Screenshot von deiner Regel. Eigentlich sollte
Beispiel.avi -> moveto -> c:/beispielordner... funktionieren
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2467  
Old 15.10.2022, 15:35
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Ah sorry für die Verwirrung.

JD2 Lädt die einzelnen Pakete in ein Verzeichnis.
R:\Archive\XYZ.part1
R:\Archive\XYZ.part2
R:\Archive\XYZ.part3
Dann kommt der Entpacker zum Zug und entpackt das Paket in folgenden Ordner:
R:\extracted
Das Paket hat folgende Struktur:
Beispiel.rar -> Beispielordner ->-> Beispieldatei.avi
Das heisst wenn der Entpacker fertig ist:
R:\extracted\Beispielordner\Beispieldate.avi
Meine AVI Datei liegt in einem Unterordner. Die Regel würde greifen wenn:
R:\extracted\Beispieldatei.avi
Attached Images
File Type: jpg Screenshot 2022-10-15 143103.jpg (116.2 KB, 2 views)
Reply With Quote
  #2468  
Old 17.10.2022, 17:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

@GTAINGLHERR: Die Regel ist falsch Du brauchst zwei getrennte Regeln. Einmal für die Archive selbst und dann einmal für die entpackten Dateien. Deine Regel greift nur auf Archive mit einer bestimmten Größe und greift somit nicht für die entpackte Beispieldatei.avi, da diese kein Archiv ist und evtl andere Größe hat.
Quote:
Originally Posted by Jiaz View Post
Die Regel muss natürlich auf deine entpackte Dateien *passen*.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2469  
Old 17.10.2022, 18:32
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Das Problem ist nicht die Grösse, sondern das Archiv, welches einen Ordner enthält und dort drinnen die Dateien liegen. Deshalb die Bitte an ein funktionierendes Skript.
Reply With Quote
  #2470  
Old 18.10.2022, 03:21
ThisThereIs ThisThereIs is offline
Modem User
 
Join Date: Oct 2022
Posts: 1
Default

Hi there, I'm trying to figure out where to start, in using Event Scripter to hopefully integrate the software from voidtools.com called everything

The software, everything, if you don't know, locates files and folders by name instantly.

From what I see there is perhaps two routes to making a script and I'm wondering which would be the best option?

They have an SDK, for IPC, voidtools.com/Everything-SDK.zip. I'm not sure if Event Scripter can utilise this SDK?

Or if not another option, voidtools everything has HTTP server capabilities to serve up search results via localhost.
voidtools.com/support/everything/http/

The idea for the script on a file by file basis, would be checking if the files entered into LinkGrabber already exist anywhere on any disk indexed by voidtools everything. Not just the download folder, that Jdownloader already does.

Ideally the script could be split into a few scripts or have different modes. To cross check files between voidtools everything database and LinkGrabbers Linklist. To crosscheck by name only, when an entry in linkgrabber, hasn't has the filesize of the file to download resolved and is unknown.

Also to cross check both filename and filesize for a match.

Perhaps also cross check file size of the files and only file type of the file in Linkgrabbers link list to voidtools everything database. To match similar files of the same filetype and size, where the filename may not be a match.

I'm not sure perhaps this could also be implemented further down the line, using Regex, fuzzy filename pattern matching. For files that are the same but the names are slightly dissimilar.

I hope you can help. Thank you : )

Last edited by Jiaz; 18.10.2022 at 15:55.
Reply With Quote
  #2471  
Old 18.10.2022, 15:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

Quote:
Originally Posted by GTAINGLHERR View Post
Das Problem ist nicht die Grösse, sondern das Archiv, welches einen Ordner enthält und dort drinnen die Dateien liegen. Deshalb die Bitte an ein funktionierendes Skript.
Verstehe mich bitte nicht falsch, aber auch ich muss mich erst bei Skripten für den Eventskripter *reinfuchsen* und mache da viel über Trial&Error, weil Javascript einfach nicht meine Welt ist. Daher ja die Empfehlung es über den Pakagizer zu machen und ich habe dir versucht zu erklären das deine Regel nicht funktioniert, weil diese eben auf Archiv Dateien als Bedigung reagieren, aber du musst die Regel so erstellen, damit diese auf die entpackten Dateien passt. Deine Regel hat als Bedigung ein bestimmte Dateigröße UND Dateityp Archiv. Aber die entpackte Datei ist nicht vom Dateityp Archiv und entsprechend passt die Regel. Daher auch die Empfehlung das in zwei Regeln zu realisieren, siehe https://board.jdownloader.org/showpo...postcount=2468
Der Grund es über den Packagizer zu versuchen/machen ist eben weil es dort eine schöne GUI gibt und man das auch als normaler Nutzer noch relativ einfach bedienen kann.
Solltest du es, wider erwarten, nicht mittels Packagizer schaffen, werd ich mir mal das Skript anschauen.
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 18.10.2022 at 16:01.
Reply With Quote
  #2472  
Old 18.10.2022, 20:56
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

@Jiaz
Danke für deine Bemühungen.
Ich kann nicht mit zwei Regeln arbeiten. Die Regel muss nunmal auf das Archiv reagieren. Es gibt ja sonst keine andere Bedinung, welche ich für entpackte Dateien bzw. Ordner einstellen kann.

Spoiler:
if (link.isFinished()) {

var destination = "R:\Testverschieben";

//var sourceFile1 = link.getExtractedFiles.subfolder();
var sourceFile2 = link.getExtractedFilePaths.subfolder();
//var sourceFile = link.getDownloadPath.subfolder();

Move(sourceFile2,destination);

}


Mit obigen Code habe ich's getestet. Vielleicht könnte mir ja jemand auf die Sprünge helfen.
Reply With Quote
  #2473  
Old 19.10.2022, 21:55
Turkhan Turkhan is offline
I will play nice!
 
Join Date: Oct 2022
Posts: 1
Default Event script interval ms mistake

Hi All,
It is certainly my fault and therefore I would like some clarification regarding a script that I copied in one of your examples.

-----------------------------------------
"Call interval in ms 100000

var setInterval = 10; // in minutes
var feeds = JD_HOME + "/feeds/links.txt"; // Full path to text file containing the urls

if (interval == setInterval * 10 * 1000) {
callAPI("linkgrabberv2", "addLinks", {
"deepDecrypt": true,
"links": readFile(feeds)
});
} else {
interval = setInterval * 10 * 1000;
}
----------------------------------------------------

The download starts every 2 minutes, but I think I have set the loop time to 10 minutes.
Where am I wrong?
To set my choice, do I have to change the 'setinterval' or the one above expressed in ms?


Can you tell me what values ​​to put to make the script run again after 8 hours?

Thank you
Reply With Quote
  #2474  
Old 20.10.2022, 16:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

@Turkhan: script execution interval is wrong, 10 mins = 10*60*1000 = 600.000
but your script has 10 * 10 *1000 = 100 secs = 100.000
change
Quote:
if (interval == setInterval * 60 * 1000) {
callAPI("linkgrabberv2", "addLinks", {
"deepDecrypt": true,
"links": readFile(feeds)
});
} else {
interval = setInterval * 60 * 1000;
}
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2475  
Old 29.10.2022, 16:21
RedNapalm RedNapalm is offline
Wind Gust
 
Join Date: Dec 2017
Posts: 44
Default

Hey I need a script that can gather up all packages that contain the same Download From url and merge into one package. Thanks!
Reply With Quote
  #2476  
Old 29.10.2022, 22:33
Duradara Duradara is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Does anyone have a script that automatically makes a shortcut of the download folder in desktop?
I currently download thing in my D drive and I want to automatically make a shortcut of the things I downloaded my in desktop

Last edited by Duradara; 29.10.2022 at 22:40.
Reply With Quote
  #2477  
Old 08.11.2022, 09:17
GTAINGLHERR GTAINGLHERR is offline
Baby Loader
 
Join Date: Oct 2022
Posts: 6
Default

Guten Morgen zusammen

Mal paar grundsätzliche Fragen:

Ist es möglich per Eventscripter einen "Ein/Aus" Schalter zu kreieren? Damit man beispielsweise per Knopfdruck, einzelne Filter und Regeln im Paketverwalter aktiveren und deaktieren kann?

Gibts irgendwo eine Beschreibung wie ich zum Beispiel ein Filter im Linkfilter ansprechen kann?
Dieser Code funktioniert und gibt eine Meldung aus:

Spoiler:
if (name == "Eigener Schalter) {
alert("Gedrückt wurde der Schalter")
}

Danke und lg
Reply With Quote
  #2478  
Old 08.11.2022, 11:26
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,045
Default

Quote:
Originally Posted by GTAINGLHERR View Post
Ist es möglich per Eventscripter einen "Ein/Aus" Schalter zu kreieren? Damit man beispielsweise per Knopfdruck, einzelne Filter und Regeln im Paketverwalter aktiveren und deaktieren kann?
Ja.
Alles was du über die Profieinstellungen ändern kannst, kannst du auch per EventScripter ändern.

Quote:
Originally Posted by GTAINGLHERR View Post
Gibts irgendwo eine Beschreibung wie ich zum Beispiel ein Filter im Linkfilter ansprechen kann?
Nein du musst dich durch bestehende Scripte (in diesem Thread) wühlen und/oder auf Antwqort von mgpai und/oder Jiaz warten.
__________________
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
  #2479  
Old 09.11.2022, 15:53
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 479
Default REQUEST: Script which can reset/resume downloads with a certain error message

@mgpai

Not only I have the following problem:

Quite often I'm getting this error message:
Code:
Network problem: Caller: org.jdownloader.plugins.components.antiDDoSForHost.openAntiDDoSRequestConnection(antiDDo...
The waiting time for automatic resuming is 30 minutes and it is hard-coded in JD.

But I can manually reset links with this error. And already after 2 minutes, I can download again without this error.

If you find the time:
Could you please provide a script which can reset and resume downloads with such errors - if possible automatically after a timeout of e.g. 3 minutes?

Thank you very much for any efforts taken!
Reply With Quote
  #2480  
Old 09.11.2022, 16:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,045
Default

* for reference, this thread where some of ther contents of post #2479 have been discussed too:
https://board.jdownloader.org/showthread.php?t=79461
__________________
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?

Last edited by pspzockerscene; 09.11.2022 at 16:16. Reason: Improved wording
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 13:11.
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.