remove / and \ from title
This commit is contained in:
parent
af1a53c519
commit
5cf71c08b4
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class DownloadController {
|
|||
if (data.feed == 'on')
|
||||
DLFile = `hidden/${title.replace(/\s/g, '_')}.${ext}`;
|
||||
|
||||
DLFile = DLFile.replace(/[()]/g, '_');
|
||||
DLFile = DLFile.replace(/[()]|[/]|[\\]/g, '_');
|
||||
video.pipe(fs.createWriteStream(`./public/uploads/${DLFile}`));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue