From 3e730dd0d2db5984a4fc7e1fab423f5df7f34c08 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Sun, 21 Mar 2010 23:41:32 +0800 Subject: More friendly download script. 1. Pass the cookies.txt file to wget through the --load-cookies option. 2. Use the wget option --content-disposition to determine a meaningful name for the downloaded file. --- examples/data/scripts/download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/data/scripts/download.sh') diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh index 1c7d039..f6d34e9 100755 --- a/examples/data/scripts/download.sh +++ b/examples/data/scripts/download.sh @@ -3,7 +3,7 @@ # try some pattern matching on the uri to determine what we should do # Some sites block the default wget --user-agent.. -GET="wget --user-agent=Firefox" +GET="wget --user-agent=Firefox --content-disposition --load-cookies=$XDG_DATA_HOME/uzbl/cookies.txt" dest="$HOME" url="$8" -- cgit v1.2.3