elvish_config/aliases/yt-dlp.elv

14 lines
227 B
Plaintext

var cmd = $e:yt-dlp~
fn -dl {|@argv|
$cmd --no-check-certificate $@argv
}
fn -audio {|@argv|
-dl -x --audio-format best $@argv
}
edit:add-var yt-dl~ {|@argv| -dl $@argv }
edit:add-var yt-audio~ {|@argv| -audio $@argv }