When youtube-dl is not available in PATH, use yt-dlp instead
authorJoey Hess <joeyh@joeyh.name>
Mon, 21 Nov 2022 18:39:26 +0000 (14:39 -0400)
committerSean Whitton <spwhitton@spwhitton.name>
Mon, 21 Nov 2022 23:26:48 +0000 (16:26 -0700)
commitfa783e0eba307727422992b14076d8aa3343230c
treeaebb382b56be2e1758122e746bb425047bb4eccd
parented8e379f7e5f5b4f676bee573f38ee6f008d73ec
When youtube-dl is not available in PATH, use yt-dlp instead

Debian is going to drop youtube-dl which is not active upstream, and yt-dlp
is the replacement. This will make it be used if youtube-dl gets removed.

If an old version of youtube-dl remains installed, git-annex will still use
it. That might not be desirable, but changing git-annex to use yt-dlp in
preference to youtube-dl when both are installed risks breaking when
the user has annex.youtube-dl-options set to something that is supported
by youtube-dl, but not by yt-dlp.

Sponsored-by: Boyd Stephen Smith Jr. on Patreon
(cherry picked from commit 5256be61c12fb030fe2eebe2751ee1601a5e7514)
Annex/YoutubeDl.hs
debian/control
doc/git-annex.mdwn