dot

packages and services management
Log | Files | Refs | README

commit e79e1ee731a41f19c92f5da89659e70a1792f83e
parent 8e51be3bc5461b1586d3c9bf3150be3bc5d7e99b
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 23 Sep 2018 09:42:46 +0200

do nothing special about spaces and tabs

Diffstat:
Mbin/web | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/bin/web b/bin/web @@ -17,8 +17,7 @@ case $file in (*.jpg|*.png|*.gif) type=image ;; -(*.webm|*.mp4|*.mkv|*.ogv|*.avi|\ -*.mp3|*.ogg|*.opus|*.wav|*.flac) +(*.webm|*.mp4|*.mkv|*.ogv|*.avi|*.mp3|*.ogg|*.opus|*.wav|*.flac) exec ffplay "$1" ;; (*.txt) @@ -39,16 +38,16 @@ fi case $host in (*vimeo.com|*youtube.com|*youtu.be|*openload.co) - mkdir -p "$HOME/tmp/video/$host" - cd "$HOME/tmp/video/$host" + mkdir -p "$HOME/tmp/video/$host" + cd "$HOME/tmp/video/$host" file=$PWD/$(youtube-dl --get-filename "$1") mkdir -p "$(dirname "$file")" youtube-dl -o "$(echo "$file" | sed 's,%,%%,g')" "$1" exec xdg-open "$file" ;; (*bandcamp.com) - mkdir -p "$HOME/tmp/music/$host" - cd "$HOME/tmp/music/$host" + mkdir -p "$HOME/tmp/music/$host" + cd "$HOME/tmp/music/$host" file=$PWD/$(youtube-dl --get-filename "$1") youtube-dl "$1" exec xdg-open "$file"