Closed rayluo closed 4 years ago
Seems like this should already be handled by sanitize_filename. https://github.com/mps-youtube/mps-youtube/blob/afab9fbc9ba61c646e406c6754e589c9c0c15c77/mps_youtube/util.py#L129-L140
What OS are you using that doesn't allow #
in filenames?
You have a point. My sanitizing #
was probably unnecessary. I was in a hurry to throw out some quick hack to get my download working.
And thanks to your hint to the sanitize_filename()
. It turned out it was introduced just 7 months ago, but the mps-youtube shipped in my Linux-distro is still 0.2.8, released at 2 years ago. No wonder.
You can close this PR, then.
BTW, are you a maintainer of this project? Do you know whether this project will have a new release anytime soon? Too bad, I wasted my mid-night oil trying to debug this program.
Not a maintainer. Just a contributor. They don't seem to do releases often. My advice would be to avoid using your package manager and just point pip at this repo.
pip3 install --upgrade git+https://github.com/mps-youtube/mps-youtube.git
Otherwise, titles with such letters won't be able to downloaded