ytb2mp3 / youtube-mp3-downloader

Extract music from YouTube videos
MIT License
377 stars 104 forks source link

Apply the clean function to the optional fileName #98

Closed akoskoc closed 2 years ago

akoskoc commented 2 years ago

This change ensures that the optional fileName variable contains valid characters.

Reason: the user may extend the video title that they use for the file name. In that case the video title could have characters that are not valid for the operating system.

ytb2mp3 commented 2 years ago

The custom code for filename sanitation was removed in 104ee55b43c25909558e41ed0aeb6297d6019cb7, thanks anyway!