aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-27 19:51:22 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-27 19:51:22 +0000
commit49f584e813fc4daa9702cd533de7725752ac990a (patch)
treef809f86e6786b262ebc929676f05853050c8755a
parent524744b3a3598a12d7f7462741525c9e00d337f7 (diff)
parentd064cbd64582c33f8b0926503fed38f4b946034d (diff)
Merge branch 'master' of ssh://git.yulqen.org:2222/home/git/repositories/shell/bash-scripts
-rwxr-xr-xmpv-play9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpv-play b/mpv-play
new file mode 100755
index 0000000..906c778
--- /dev/null
+++ b/mpv-play
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+
+if [[ -z $1 ]]; then
+ echo "You need to pass the URL."
+ exit 0
+fi
+
+URL="$1"
+mpv --profile=fast --hwdec=auto-safe "$URL"