pass git config options to youtube-dl --simulate
Decided not to --ignore-config by default. It the user has something in their youtube-dl config files that breaks git-annex they can configure it to use that option.
This commit is contained in:
parent
24f27ec39d
commit
31b4d7c6d0
2 changed files with 7 additions and 8 deletions
|
@ -82,5 +82,7 @@ youtubeDlTo key url dest = do
|
||||||
|
|
||||||
-- Check if youtube-dl can still find media in an url.
|
-- Check if youtube-dl can still find media in an url.
|
||||||
youtubeDlSupported :: URLString -> Annex (Either String Bool)
|
youtubeDlSupported :: URLString -> Annex (Either String Bool)
|
||||||
youtubeDlSupported url = liftIO $ catchMsgIO $
|
youtubeDlSupported url = catchMsgIO $ do
|
||||||
snd <$> processTranscript "youtube-dl" [ url, "--simulate" ] Nothing
|
opts <- map Param . annexYoutubeDlOptions <$> Annex.getGitConfig
|
||||||
|
let opts' = opts ++ [ url, "--simulate" ]
|
||||||
|
liftIO $ snd <$> processTranscript "youtube-dl" opts' Nothing
|
||||||
|
|
|
@ -1322,12 +1322,9 @@ Here are all the supported configuration settings.
|
||||||
|
|
||||||
Some options may break git-annex's integration with youtube-dl. For
|
Some options may break git-annex's integration with youtube-dl. For
|
||||||
example, the --output option could cause it to store files somewhere
|
example, the --output option could cause it to store files somewhere
|
||||||
git-annex won't find them. Avoid any options that cause youtube-dl
|
git-annex won't find them. Avoid setting here or in the youtube-dl config
|
||||||
to download more than one file, or to store the file anywhere
|
file any options that cause youtube-dl to download more than one file,
|
||||||
other than the current working directory.
|
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.
|
|
||||||
|
|
||||||
* `annex.aria-torrent-options`
|
* `annex.aria-torrent-options`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue