This commit is contained in:
2025-10-09 11:23:52 +03:00
parent 964db24d10
commit 81b0bd4851
13 changed files with 80 additions and 41 deletions
+1 -4
View File
@@ -1,7 +1,4 @@
function music --wraps 'yt-dlp -x --embed-thumbnail --embed-chapters' --description 'Download music with yt-dlp'
test -d $argv[-1]; or set -a argv "$XDG_MUSIC_DIR"
echo "Downloading into $argv[-1]"
command yt-dlp --extract-audio --embed-thumbnail --embed-chapters \
--output "$argv[-1]/%(title)s.%(ext)s" $argv[..-2]
--output "$XDG_MUSIC_DIR/%(title)s.%(ext)s" $argv
end