summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/kshrc b/kshrc
index 344a199..f40b227 100644
--- a/kshrc
+++ b/kshrc
@@ -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