diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-08-11 15:58:37 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-08-11 15:58:37 +0200 |
commit | 5e17418f1eef06e97bb621edf53530437df8b14f (patch) | |
tree | f87466982929a0d0fead9ec97a5e9b017c76bf9e /.uzbl/scripts/ytdl.sh | |
parent | 8df9472e0cdbab0d12211c2bc77918e8f515c409 (diff) |
Back up several files
Diffstat (limited to '.uzbl/scripts/ytdl.sh')
-rwxr-xr-x | .uzbl/scripts/ytdl.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.uzbl/scripts/ytdl.sh b/.uzbl/scripts/ytdl.sh new file mode 100755 index 0000000..acf327a --- /dev/null +++ b/.uzbl/scripts/ytdl.sh @@ -0,0 +1,8 @@ +#!/bin/bash +cd ~/Downloads # change this line to determine where the file is saved +python2 youtube-dl -o %\(title\)s.%\(ext\)s "$1" # -o output template is optional +# play with mplayer after download +savename=`python2 youtube-dl -o %\(title\)s.%\(ext\)s --get-filename "$1"` +mplayer -really-quiet "$savename" +ratpoison -c "echo [ytdl-uzbl] $1 done." # change this line to change how you are notified of a + # completed download |