Scripts: Play video from clipboard
This commit is contained in:
+8
-4
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Depends: GNU getopt, mpv, socat, streamlink
|
# Depends: GNU getopt, mpv, socat, streamlink, xclip
|
||||||
|
|
||||||
SOCK="/tmp/umpv-fifo"
|
SOCK="/tmp/umpv-fifo"
|
||||||
|
|
||||||
@@ -256,7 +256,11 @@ elif [ $shuffleOption -eq 1 ]; then
|
|||||||
elif [ $queueOption -eq 1 ]; then
|
elif [ $queueOption -eq 1 ]; then
|
||||||
queue "$*"
|
queue "$*"
|
||||||
else
|
else
|
||||||
for url in "$@"; do
|
if [ "$*" = "" ]; then
|
||||||
play "$url"
|
play "$(xclip -o)"
|
||||||
done
|
else
|
||||||
|
for url in "$@"; do
|
||||||
|
play "$url"
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user