#1
|
|||
|
|||
Duplicate check multiple locations before downloading file.
The ability to check for existing files, like now, but for multiple locations such as external hard drives.
I believe now the only option is through a script. But, the scripter addon doesn't launch for me. Thanks for your time. |
#2
|
||||
|
||||
I don't ever see this happening as this is a very very complex feature request that most of all users would never use.
I recommend using an EventScripter script. Please keep in mind that the EventScripter isn't something that you can just enable/disable - you need to either have some java script coding skills or ask other users for help in this thread. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
||||
|
||||
I agree with pspzockerscene. I recommend to use script for Eventscripter to check multiple locations for existing file and auto disable/remove links that are already downloaded.
Have you installed the eventscripter extension? What exactly do you mean by "doesn't launch for me"?
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
Quote:
Last edited by dereks10; 30.10.2020 at 02:14. |
#5
|
|||
|
|||
Ahhh, foiund it, deeep in a thread. He just drops this script and that was end of thread. I dont know how it turned out, but i have zero knowledge of scripts. Hopefully its just a copy paste with minimal work needed. Ill figure out my event scripter and check back in.
Here is all i could find. Code: // Disable the download if the file already exists on the disk with alternate name. // Trigger Required: "A Download Started". var name = link.getName(); var altName = /\s/g.test(name) ? name.replace(/\s/g, "_") : name.replace(/_/g, " "); var altPath = getPath(link.getPackage().getDownloadFolder() + "/" + altName); if (name != altName) { if (altPath.exists()) link.setEnabled(false); } verify if the file exist in a folder and if no, download the file on a other folder. example : verify -> c:\first\folder [EXIST] skip verify -> c:\first\folder [NO EXIST] download in the folder e:\second\folder ... Code: // Change download folder if a file does not already exist in default folder. // Trigger Required: "A Download Started". var altFolder = "e:/second/folder"; // <- Set Alternate download folder var file = getPath(link.getDownloadPath()); var packageName = link.getPackage().getName(); var UUID = link.getUUID(); if (!file.exists()) { getPath(altFolder).mkdirs(); callAPI("downloadsV2", "movetoNewPackage", [UUID], [], packageName, altFolder); } Path can be set/changed only for the entire package. So the link will be moved to a different package (with the same name). Also note, the file on the disk will be moved to the new folder only after the download has stopped. In General settings enable "skip" if file exists. |
#6
|
||||
|
||||
Here you can find the script, https://board.jdownloader.org/showpo...postcount=1578
__________________
JD-Dev & Server-Admin |
#7
|
||||
|
||||
I will close this thread now.
Please ask in the linked thread if you got further questions. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|