From d7411594c0ca071f08da108f544902f03e2e413d Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Fri, 9 Oct 2020 09:50:40 -0400 Subject: fixed uptime and network scripts, added transcode-screencast --- yt.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yt.sh') diff --git a/yt.sh b/yt.sh index d422a66..2ec834e 100755 --- a/yt.sh +++ b/yt.sh @@ -47,7 +47,8 @@ prompt_url() { ## Grab url from clipboard/primary selection, else get via prompt grab_url() { - if url=$(xclip -o -selection clipboard 2>/dev/null || echo) && check_if_youtube $url; then + if url="$1" && check_if_youtube $url; then + elif url=$(xclip -o -selection clipboard 2>/dev/null || echo) && check_if_youtube $url; then elif url=$(xclip -o 2>/dev/null || echo) && check_if_youtube $url; then elif url=$(grab_url_stdin) && check_if_youtube $url; then elif url=$(prompt_url) && check_if_youtube $url; then @@ -131,7 +132,7 @@ print_info() { ## Main mkdir -p "$DOWNLOAD_DIR" -url=$(grab_url) +url=$(grab_url "$1") case "$(get_action_single)" in 5) -- cgit v1.2.3