Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Strip emojis from filename #14474
Strip emojis from filename #14474
Comments
|
Emojis are Unicode characters as well |
|
@Hrxn yes. What I meant is removing emojis and keep rest of the unicode character. Because on android emojis for filename is not supported. We can do like this in Python:
|
|
There's a (technically) similar issue at #5042. Please move on there for further discussions. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.10.12. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
So we have
--restrict-filenamesoption which remove any non-ascii character, but we do not have any option for removing emojis and keep other unicode character. For example, when I'm trying to downloadhttps://www.youtube.com/watch?v=TuXyA2sLzmkdownload will be succeeded but I can not play the file on android due to having emojis on filename.Again if I use
--restrict-filenamesit would work smoothly however--restrict-filenamesis really bad for non-english video. It would strip full filename where I would like to to youtube-dl support new feature which would respect unicode character while removing emojis and other unsupported by android platform.BTW, Thanks for this awesome tool :)