riazXrazor / udemy-dl

Nodejs script to download a udemy.com course, for personal offline use
282 stars 67 forks source link

Sanitize file names. #3

Closed JC-JackClark closed 7 years ago

JC-JackClark commented 7 years ago

Use sanitize instead of slugify. Slugify caused an issue where when the title contained ':' it would replace with ':-'.

Also the file name check wasn't added when looking for the folder, so threw an error 'folder not found'.

riazXrazor commented 7 years ago

Thanks jack i appreciate your help. :+1: