Home
tMerge youtube|vimeo|etc. into the http case. - plumber - simple plumber tool HTML git clone https://git.parazyd.org/plumber DIR Log DIR Files DIR Refs --- DIR commit 35db6374453e4d2a9b9b161ea27133433fa38b53 DIR parent e9ac19aa1fb596a5084b7e03498f406160645b10 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 13 May 2020 12:05:53 +0200 Merge youtube|vimeo|etc. into the http case. Diffstat: M p | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) --- DIR diff --git a/p b/p t@@ -39,10 +39,6 @@ gopher://*) esac ;; -ytdl://*|*www.youtube.com*|*vimeo.com*|*dailymotion.com*) - mpv "$clip" & - ;; - http://*|https://*) case "$clip" in *.jpg|*.jpeg|*.JPG|*.JPEG|*.png|*.PNG) t@@ -54,12 +50,19 @@ http://*|https://*) *.gif|*.GIF) curl -Ls "$clip" | gifview -a - & ;; + *www.youtube.com*|*vimeo.com*|*dailymotion.com*) + mpv "$clip" & + ;; *) ff -new-tab "$clip" & ;; esac ;; +ytdl://*) + mpv "$clip" & + ;; + ssh://*) $TERMCMD ssh "$clip" & ;;