View Single Post
  #1549  
Old 20.10.2020, 17:10
Artex Artex is offline
I will play nice!
 
Join Date: Oct 2020
Posts: 4
Default

Quote:
Originally Posted by mgpai View Post
Code:
// Move downloaded non-archive files to user-specified folder
// Trigger: A Download Stopped

if (link.finished && !link.archive) {
    var downloadFolder = link.package.downloadFolder;
    var newFolder = downloadFolder.replace("C:\\Downloads", "C:\\myFolder\\MovedFiles"); // case-sensitive

    if (newFolder != downloadFolder) {
        getPath(link.downloadPath).moveTo(newFolder);
    }
}
Apologies - I think I was unclear:


Currently all downloads go into F:/!Downloads/JDownloader2 into a subfolder which is the name of a movie for example.

So...
  • F:/!Downloads/JDownloader2/MovieName/Movie/*.*
  • F:/!Downloads/JDownloader2/MovieName/Featurettes/*.*


When each download is finished, I would like these to go to:
  • F:/!Downloads/JDownloader2/_COMPLETE/MovieName/Movie/*.*
  • F:/!Downloads/JDownloader2/_COMPLETE/MovieName/Featurettes/*.*

[
Reply With Quote