summaryrefslogtreecommitdiff
path: root/.uzbl/scripts/ytdl.sh
diff options
context:
space:
mode:
Diffstat (limited to '.uzbl/scripts/ytdl.sh')
-rwxr-xr-x.uzbl/scripts/ytdl.sh8
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