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.
How do I pass `restrictfilenames` in a python script? #16231
Comments
|
|
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.16. 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?
How do I pass
restrictfilenamesin a python script?According to this Stack Overflow answer, the
restrictfilenamesoption doesn't require an argument. The example provided, though, is for the command line execution. How do I passrestrictfilenamesinydl_opts?I have tried both
and
But when I download the test video I get non-ASCII characters, which is not expected.
Output:
youtube-dl test video ''_ä↭𝕐-BaW_jenozKc-1920x1080.mp4The same output occurs with
Output:
youtube-dl test video ''_ä↭𝕐-BaW_jenozKc-1920x1080.mp4How do I pass
restrictfilenamesin a python script?