summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Annex/YoutubeDl.hs6
-rw-r--r--doc/git-annex.mdwn9
2 files changed, 7 insertions, 8 deletions
diff --git a/Annex/YoutubeDl.hs b/Annex/YoutubeDl.hs
index e646f3fe8..65981e0df 100644
--- a/Annex/YoutubeDl.hs
+++ b/Annex/YoutubeDl.hs
@@ -82,5 +82,7 @@ youtubeDlTo key url dest = do
-- Check if youtube-dl can still find media in an url.
youtubeDlSupported :: URLString -> Annex (Either String Bool)
-youtubeDlSupported url = liftIO $ catchMsgIO $
- snd <$> processTranscript "youtube-dl" [ url, "--simulate" ] Nothing
+youtubeDlSupported url = catchMsgIO $ do
+ opts <- map Param . annexYoutubeDlOptions <$> Annex.getGitConfig
+ let opts' = opts ++ [ url, "--simulate" ]
+ liftIO $ snd <$> processTranscript "youtube-dl" opts' Nothing
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 6dc06557c..8f84f1d9e 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -1322,12 +1322,9 @@ Here are all the supported configuration settings.
Some options may break git-annex's integration with youtube-dl. For
example, the --output option could cause it to store files somewhere
- git-annex won't find them. Avoid any options that cause youtube-dl
- to download more than one file, or to store the file anywhere
- other than the current working directory.
-
- Note that git-annex runs youtube-dl with --ignore-config, to avoid
- any configuration file settings that break its integration.
+ git-annex won't find them. Avoid setting here or in the youtube-dl config
+ file any options that cause youtube-dl to download more than one file,
+ or to store the file anywhere other than the current working directory.
* `annex.aria-torrent-options`