summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/mpvy5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/mpvy b/sh/mpvy
index 12792d0..61d9b41 100755
--- a/sh/mpvy
+++ b/sh/mpvy
@@ -9,7 +9,7 @@ cookie=
download_dir=
fps=30
height=$SCR_HEIGHT
-url="$(xsel -ob)"
+url=
cookie_ytdl=
cookie_mpv=
@@ -28,6 +28,9 @@ while getopts Aabcd:f:h:su: opt; do
\?) exit 1;;
esac
done
+
+[ "$url" ] || url="$(xsel -ob)"
+
if [ -z "$format" ]; then
# xyzstudio GPU
#vformat="[height<=?$height][fps<=?$fps][vcodec!^=?vp9][vcodec!^=?av01]"