JDownloader Community - Appwork GmbH
 

Notices

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 29.10.2020, 12:55
dereks10 dereks10 is offline
Vacuum Cleaner
 
Join Date: Sep 2020
Posts: 16
Default 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  
Old 29.10.2020, 16:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
  #3  
Old 29.10.2020, 16:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,339
Default

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  
Old 30.10.2020, 02:09
dereks10 dereks10 is offline
Vacuum Cleaner
 
Join Date: Sep 2020
Posts: 16
Default

Quote:
Originally Posted by Jiaz View Post
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"?
Hey guys, thanks for reply. The script just trys to open then insta crash. Not the whole program but just blinks.. i guess. It says "loading editor" but for a micro second. I could try a backup and reinstall. I am on the Jar version. I found a thread, couple days ago, seems like your in house scripter had helped someone with the same question. i cant find the darn thing now but ill look for it and paste it over here. see what yall think since it was couple years ago i believe.

Last edited by dereks10; 30.10.2020 at 02:14.
  #5  
Old 30.10.2020, 02:35
dereks10 dereks10 is offline
Vacuum Cleaner
 
Join Date: Sep 2020
Posts: 16
Default

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  
Old 30.10.2020, 12:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,339
Default

Here you can find the script, https://board.jdownloader.org/showpo...postcount=1578
__________________
JD-Dev & Server-Admin
  #7  
Old 30.10.2020, 14:28
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Closed Thread

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 10:24.
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.