YoutubeDownloader: Invalid file name

Hi, thanks for your nice package.

I have a problem with returned $filePath from onFinalized() PATH_TO_FILE\...\videos\FC_Barcelona_vs_FC_Bayern_Munich_2015_(Champions_League_semi-final_Himno,Anthem ).3gp

can you see spaces after ‘)’ ? It seems is not usual parentheses ) as we know I can’t generate link to the file! browser return 404 error

original video: https://www.youtube.com/watch?v=sMq_A0ETURQ

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Obviously this is related to pathSafeFilename function. There are many possibilities for this to fail, including some non-English characters, some emojis and spaces. PR is always welcome if you would. but there in Filename Sanitizing part of Readme, there is a way to change that function from outside of class. take a look at it.