Replace whitespaces in filenames

Whitespaces in .torrent filenames are causing issues with rTorrent 0.9.6
This commit is contained in:
Joris
2016-09-28 18:51:58 +02:00
committed by GitHub
parent d2e84f4edc
commit 96e4511ffa
+2
View File
@@ -32,6 +32,8 @@ var client = {
// filesize of 524 kilobytes or less. This allows the user to send many
// torrent files reliably.
files.forEach((file, index) => {
file.originalname = file.originalname.replace(/\s+/g, '.');
let fileRequest = new ClientRequest();
fileRequest.add('addFiles', {files: file, path, start});