Expose opt to use path as basePath in moveTorrents

This commit is contained in:
nVitius
2017-04-30 23:10:08 -07:00
parent 112ba57d98
commit 20ed015025
2 changed files with 10 additions and 2 deletions

View File

@@ -228,6 +228,7 @@ var client = {
moveTorrents: (data, callback) => {
let destinationPath = data.destination;
let isBasePath = data.isBasePath;
let hashes = data.hashes;
let filenames = data.filenames;
let moveFiles = data.moveFiles;
@@ -264,7 +265,7 @@ var client = {
}
mainRequest.stopTorrents({hashes});
mainRequest.setDownloadPath({hashes, path: destinationPath});
mainRequest.setDownloadPath({hashes, path: destinationPath, isBasePath});
mainRequest.onComplete(afterSetPath);
mainRequest.send();
},