From ecdba3ed3f4f43c1977a1ae1db62b93406713150 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 28 Nov 2018 17:14:47 -0400 Subject: [PATCH] When running youtube-dl to get a filename, pass --no-playlist Seems that youtube-dl --get-filename on a playlist lists all the filenames for the playlist, which can take quite some time. The code already only took the first name, so --no-playlist can speed it up a lot. This commit was sponsored by Brett Eisenberg on Patreon. --- Annex/YoutubeDl.hs | 1 + CHANGELOG | 1 + 2 files changed, 2 insertions(+) diff --git a/Annex/YoutubeDl.hs b/Annex/YoutubeDl.hs index 28ba26138b..5607400c1b 100644 --- a/Annex/YoutubeDl.hs +++ b/Annex/YoutubeDl.hs @@ -204,6 +204,7 @@ youtubeDlFileNameHtmlOnly' url uo [ Param url , Param "--get-filename" , Param "--no-warnings" + , Param "--no-playlist" ] (Nothing, Just o, Just e, pid) <- liftIO $ createProcess (proc "youtube-dl" (toCommand opts)) diff --git a/CHANGELOG b/CHANGELOG index 816949d8e7..7dfbc9709a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ git-annex (7.20181122) UNRELEASED; urgency=medium * Make bittorrent special remote work w/o btshowmetainfo installed when it was build with torrentparser. Thanks, Robert Schütz + * When running youtube-dl to get a filename, pass --no-playlist. -- Joey Hess Tue, 27 Nov 2018 12:29:27 -0400