From 23c84d2e08966c81c8e72dd9e5414697a0bb2dbc Mon Sep 17 00:00:00 2001 From: sahil sehwag Date: Thu, 23 Apr 2020 23:01:39 +0530 Subject: [PATCH] Removing the invalid characters in filename --- script.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index d94fa42..851d7e9 100644 --- a/script.js +++ b/script.js @@ -89,12 +89,12 @@ const downloadCourse = async (courseContent) => { const link = await getVideoURL(id); const filePath = await getFilePath( - courseName, - authorName, - sectionName, - sectionIndex, - videoName, - videoIndex + nameToFilename(courseName), + nameToFilename(authorName), + nameToFilename(sectionName), + nameToFilename(sectionIndex), + nameToFilename(videoName), + nameToFilename(videoIndex) ); await downloadVideo(link, filePath);