|
|
|
@ -23,12 +23,12 @@ urls="$(echo $clip | grep -o 'https\?://[a-zA-Z0-9~#%&_+=,.?/-]\+')" |
|
|
|
|
|
|
|
# Check the requirements for every option |
|
|
|
opts="fav|rot13" |
|
|
|
check_exists "$TERM_EMU" "mpv" "youtube-dl" && |
|
|
|
check_exists "$TERM_EMU" "mpv" "yt-dlp" && |
|
|
|
opts="audio-search|$opts" |
|
|
|
check_exists "dragon" && |
|
|
|
opts="drag-n-drop|$opts" |
|
|
|
# Enable additional features when the clipboard contains an URL |
|
|
|
if [ -n "$urls" ] && check_exists "youtube-dl"; then |
|
|
|
if [ -n "$urls" ] && check_exists "yt-dlp"; then |
|
|
|
if echo "$urls" | grep -qF "scribblehub.com"; then |
|
|
|
check_exists "lncrawl" && opts="crawl|$opts" |
|
|
|
else |
|
|
|
|