[wiki] [sites] aria2 as download manager || Thuban
commit 653e7441e87aaf8d951281481d9de4dc9e54bddb
Author: Thuban <thuban_AT_singularity.fr>
Date: Sat Jun 1 11:27:54 2013 +0200
aria2 as download manager
diff --git a/surf.suckless.org/patches/aria2.md b/surf.suckless.org/patches/aria2.md
new file mode 100644
index 0000000..faf3157
--- /dev/null
+++ b/surf.suckless.org/patches/aria2.md
_AT_@ -0,0 +1,15 @@
+# aria2c
+
+To use aria2 instead of curl as default download manager, just replace
+the DOWNLOAD function like this in config.h:
+
+ /* DOWNLOAD(URI, referer) */
+ #define DOWNLOAD(d, r) { \
+ .v = (char *[]){ "/bin/sh", "-c", \
+ "cd ~/Telechargements;"\
+ "st -e /bin/sh -c \"aria2c -U '$1'" \
+ " --referer '$2' --load-cookies $3 --save-cookies $3 '$0';" \
+ " sleep 3;\"", \
+ d, useragent, r, cookiefile, NULL \
+ } \
+ }
Received on Sat Jun 01 2013 - 11:27:58 CEST
This archive was generated by hypermail 2.3.0
: Sat Jun 01 2013 - 11:36:10 CEST