mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 11:35:11 +00:00
Expose option for using basePath on torrent add
This commit is contained in:
@@ -30,6 +30,7 @@ var client = {
|
||||
addFiles: (req, callback) => {
|
||||
let files = req.files;
|
||||
let path = req.body.destination;
|
||||
let useBasePath = req.body.useBasePath || false;
|
||||
let request = new ClientRequest();
|
||||
let start = req.body.start;
|
||||
let tags = req.body.tags;
|
||||
@@ -48,7 +49,7 @@ var client = {
|
||||
file.originalname = encodeURIComponent(file.originalname);
|
||||
|
||||
let fileRequest = new ClientRequest();
|
||||
fileRequest.addFiles({files: file, path, start, tags});
|
||||
fileRequest.addFiles({files: file, path, useBasePath, start, tags});
|
||||
|
||||
// Set the callback for only the last request.
|
||||
if (index === files.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user