summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdownload-and-play6
-rwxr-xr-xrandom-music12
2 files changed, 6 insertions, 12 deletions
diff --git a/download-and-play b/download-and-play
new file mode 100755
index 0000000..fa7efd8
--- /dev/null
+++ b/download-and-play
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+yt-dlp $1 -o "$2"
+mpv "$2"
+
+exit 0
diff --git a/random-music b/random-music
deleted file mode 100755
index f06ee8c..0000000
--- a/random-music
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-if [ -z "$1" ]; then
- echo "No song amount provided. Defaulting to 10."
- arg=10
-else
- arg=$1
-fi
-
-find /mnt/music/ -type f -name "*.*" | shuf -n $arg | mpv --playlist=- --no-audio-display
-
-exit 0