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);