|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
# Depends: GNU getopt, mpv, socat, streamlink |
|
|
|
|
# Depends: GNU getopt, mpv, socat, streamlink, xclip |
|
|
|
|
|
|
|
|
|
SOCK="/tmp/umpv-fifo" |
|
|
|
|
|
|
|
|
@ -255,8 +255,12 @@ elif [ $shuffleOption -eq 1 ]; then
|
|
|
|
|
shuffle "$*" |
|
|
|
|
elif [ $queueOption -eq 1 ]; then |
|
|
|
|
queue "$*" |
|
|
|
|
else |
|
|
|
|
if [ "$*" = "" ]; then |
|
|
|
|
play "$(xclip -o)" |
|
|
|
|
else |
|
|
|
|
for url in "$@"; do |
|
|
|
|
play "$url" |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|