Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solved: issue using youtube-dl in a CFA protected folder #21791

Closed
ghost opened this issue Jul 14, 2019 · 1 comment
Closed

solved: issue using youtube-dl in a CFA protected folder #21791

ghost opened this issue Jul 14, 2019 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Jul 14, 2019

Found & Tested on Windows 1809 Pro

In WSL; using youtube-dl to download files; fails.

youtube-dl --write-description --write-info-json --write-annotations --add-metadata --xattrs --write-sub --sub-lang en "https://www.youtube.com/watch?v=FxdRfTf1pZc"
ERROR: Cannot write description file 'Sri Lanka vs India - Match Highlights _ ICC Cricket World Cup 2019-FxdRfTf1pZc.description'

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.

@ghost ghost closed this Jul 14, 2019
@ghost
Copy link
Author

@ghost ghost commented Jul 14, 2019

youtube-dl provided by Ubuntu1804-WSL

kept open for increasing visibility.

@ghost ghost reopened this Jul 14, 2019
@dstftw dstftw closed this Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.