diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-06-22 14:50:49 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-06-22 14:50:49 +0100 |
commit | 9e22e342fc63edbd6daeb8f3782286b877c91d69 (patch) | |
tree | 7245b9b16dfe402ef9afe5236e16d78e488c4147 | |
parent | 10c5cdf993f111b6abb56063ea4fbf0ad835e289 (diff) |
helpful beets stuff
-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 |