diff options
Diffstat (limited to 'kshrc')
-rw-r--r-- | kshrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,10 +76,10 @@ yta() { # search for a file and download instantly ytda() { - cd ~/Downloads && yt-dlp -f 'bestaudio' -x --audio-format mp3 ytsearch:"$*" -o '%(title)s.%(ext)s' && cd - || return + cd ~/Downloads && yt-dlp -f 'bestaudio' -x --audio-format mp3 ytsearch"$2":"$1" -o '%(title)s.%(ext)s' && cd - || return } -# get best audio of YouTube file +# get best audio of YouTube file or playlist (just use the right URL) ytmp3 () { if [ -z "$1" ]; then print "I need a valid YouTube URL.\n"; fi cd ~/Downloads && yt-dlp -f 'ba' -x --audio-format mp3 "$1" -o '%(title)s.%(ext)s' && cd - || return |