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.
solved: issue using youtube-dl in a CFA protected folder #21791
Comments
|
youtube-dl provided by Ubuntu1804-WSL kept open for increasing visibility. |
Found & Tested on Windows 1809 Pro
In WSL; using youtube-dl to download files; fails.
After some seconds, a notification appears; its about Windows blocking some program from making changes. Its Controlled Folder Access blocking a program from writing to a protected folder.
To fix this without disabling CFA for that folder; go to Controlled Folder Access in Windows Security. Click on 'allow an app through controlled ...' -> Add an Allowed App -> Recently Blocked apps.
First add python, the first item on the list. Its path will end with 'rootfs\usr\bin' for the respective WSL distribution.
Then execute the same
youtube-dl …command again and this time another CFA notification appears. Repeat the previous steps to add ffmpeg to allowed apps under CFA. Its path will also end with 'rootfs\usr\bin' for the same WSL distribution.You can also skip repeating the 'youtube-dl ...' command by adding the path to ffmpeg manually after adding python. Or if you know the path of the file in the WSL distribution.
Now you should be able to download files to a folder protected by CFA. No need to disable CFA.