make addurl of media url fail when youtube-dl is disabled

addurl: When security configuration prevents downloads with youtube-dl,
still check if the url is one that it supports, and fail downloading it,
instead of downloading the raw web page.
This commit is contained in:
Joey Hess 2018-06-28 13:01:18 -04:00
parent 2c62f8e63d
commit a63bbd868b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 27 additions and 21 deletions

View file

@ -3,3 +3,5 @@ not enabled to be used due to the recent security fix, git-annex will
download the web page and add it, which is unlikely to be desired behavior.
Instead, it should check if youtube-dl supports the page, and then error
out at the download stage, with a message that points at how to enable it.
> [[done]] --[[Joey]]