summaryrefslogtreecommitdiff
path: root/scripts/sh/dlm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sh/dlm')
-rwxr-xr-xscripts/sh/dlm8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/sh/dlm b/scripts/sh/dlm
new file mode 100755
index 0000000..1d9b28f
--- /dev/null
+++ b/scripts/sh/dlm
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Download a Youtube song.
+# Flag: q - Do not print (as first param only)
+
+[ "$1" = "q" ] && flag="1>/dev/null" || flag=""
+[ "$1" = "q" ] && param="$2" || param="$1"
+
+yt-dlp -x "$param" -o "$HOME/songs/%(title)s.%(ext)s" $flag