mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 02:56:05 +00:00
Replace whitespaces in filenames
Whitespaces in .torrent filenames are causing issues with rTorrent 0.9.6
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user