diff --git a/The Story Of The Cure - Much More Music - Part 1-10.mp4 b/The Story Of The Cure - Much More Music - Part 1-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 10-10.mp4 b/The Story Of The Cure - Much More Music - Part 10-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 2-10.mp4 b/The Story Of The Cure - Much More Music - Part 2-10.mp4 new file mode 100644 index 0000000..a279361 Binary files /dev/null and b/The Story Of The Cure - Much More Music - Part 2-10.mp4 differ diff --git a/The Story Of The Cure - Much More Music - Part 3-10.mp4 b/The Story Of The Cure - Much More Music - Part 3-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 4-10.mp4 b/The Story Of The Cure - Much More Music - Part 4-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 5-10.mp4 b/The Story Of The Cure - Much More Music - Part 5-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 6-10.mp4 b/The Story Of The Cure - Much More Music - Part 6-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 7-10.mp4 b/The Story Of The Cure - Much More Music - Part 7-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 8-10.mp4 b/The Story Of The Cure - Much More Music - Part 8-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/The Story Of The Cure - Much More Music - Part 9-10.mp4 b/The Story Of The Cure - Much More Music - Part 9-10.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/src/youtubehelper.js b/src/youtubehelper.js index 459fe5b..c0fee12 100644 --- a/src/youtubehelper.js +++ b/src/youtubehelper.js @@ -38,7 +38,7 @@ module.exports.downloadVideos = async (arr, socket, options) => { if (ytdl.validateURL(key)) { try { const stream = await ytdl(key, {quality: 'highest', filter: (format) => format.container === 'mp4'}); - stream.pipe(fs.createWriteStream(`${path}/${value.title}.mp4`)); + stream.pipe(fs.createWriteStream(`${path}/${(value.title).replace(/\//, '-')}.mp4`)); stream.on('response', (res) => { let totalSize = res.headers['content-length'];