From 007fea7c63acdada80b90780b083c8be2f62c5dc Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Sun, 24 Oct 2021 19:43:24 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9paration=20de=20la=20migration=20de=20y?= =?UTF-8?q?outube-dl=20vers=20yt-dlp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases/youtube-dl.elv | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/aliases/youtube-dl.elv b/aliases/youtube-dl.elv index bdfcb39..54b87ad 100644 --- a/aliases/youtube-dl.elv +++ b/aliases/youtube-dl.elv @@ -1,3 +1,16 @@ -edit:add-var youtube-dl~ [@argv]{ e:youtube-dl --no-check-certificate $@argv } -edit:add-var youtube-audio~ [@argv]{ e:youtube-dl --no-check-certificate -x --audio-format best $@argv } +var cmd = $e:yt-dlp~ +#var cmd = $e:youtube-dl~ + +fn -dl [@argv]{ + $cmd --no-check-certificate $@argv +} + +fn -audio [@argv]{ + -dl -x --audio-format best $@argv +} + +edit:add-var youtube-dl~ [@argv]{ -dl $@argv } +edit:add-var youtube-audio~ [@argv]{ -audio $@argv } +edit:add-var yt-dl~ [@argv]{ -dl $@argv } +edit:add-var yt-audio~ [@argv]{ -audio $@argv }