diff options
author | 2010-03-21 23:41:32 +0800 | |
---|---|---|
committer | 2010-03-23 00:40:49 +0800 | |
commit | d02a41a27be753aad435cc2dc42e69fba4904f42 (patch) | |
tree | 0d0b4fefaa18009ff346815772ed80eaa4aa59e4 /examples/data/scripts | |
parent | 9565d9c6625cf403bbcaf5a19f9694bfa6da098e (diff) |
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.
Diffstat (limited to 'examples/data/scripts')
-rwxr-xr-x | examples/data/scripts/download.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |