Browse Source

Scripts: Play video from clipboard

master
Riyyi 1 year ago
parent
commit
5bc947db3d
  1. 12
      .local/bin/play

12
.local/bin/play

@ -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

Loading…
Cancel
Save