diff options
Diffstat (limited to 'bin/lh')
-rwxr-xr-x | bin/lh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/lh b/bin/lh index 331b358..71bc747 100755 --- a/bin/lh +++ b/bin/lh @@ -39,7 +39,7 @@ findredir() { # return caught line echo "$line" # reset catch variable - unset -- catch + unset catch fi # set catch if the current line is location if echo "$line"|grep -Fq 'ocation:' @@ -61,7 +61,7 @@ URL=$(echo "$1"|findredir|tail -1|tr -d '[:cntrl:]') case "$URL" in gemini://*|gopher://*) $TERMINAL -e bombadillo "$URL" ;; - *.mkv*|*.webm*|*.mp4*) + *.mov*|*.mkv*|*.webm*|*.mp4*) mpv --no-terminal "$URL" & ;; *invidio.us/watch*|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*twitch.tv/videos/*|*twitch.tv/*/v/*) mpv --no-terminal --ytdl "$URL" & ;; @@ -73,8 +73,8 @@ case "$URL" in *.png*|*.jpg*|*.jpe*|*.jpeg*|*.gif*) IMGPATH="/tmp/$(lstrip "$URL" "*/")" curl -sL "$URL" >"$IMGPATH"&&sxiv -pqa "$IMGPATH" & ;; - *.mp3*|*.m4a*|*.flac*|*.aiff*|*.opus*|*.ogg*|*.mp3?source*) - mpv --no-terminal "$URL"& ;; + *.mp3*|*.m4a*|*.flac*|*.aiff*|*.opus*|*.ogg*|*.mp3?source*|*.wav*) + $TERMINAL -e mpv "$URL"& ;; *.epub*|*.pdf*|*.djvu*) BOOKPATH="/tmp/$(lstrip "$URL" "*/")" if [ -n "$READER" ]; then |