X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=f858f5a2250439390d3ebe3bf0389d2a4e4eccac;hb=dca42648635b70f7d01adb8d9a53720a0c7909c1;hp=a8a4a7bfac5460045d7677d0b3626270549361d7;hpb=654d527f87e59c6c9f507402878bed62398c4e61;p=surf.git diff --git a/config.def.h b/config.def.h index a8a4a7b..f858f5a 100644 --- a/config.def.h +++ b/config.def.h @@ -61,12 +61,11 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | } /* DOWNLOAD(URI, referer) */ -#define DOWNLOAD(d, r) { \ - .v = (const char *[]){ "/bin/sh", "-c", \ - "st -e /bin/sh -c \"curl -g -L -J -O --user-agent '$1'" \ - " --referer '$2' -b $3 -c $3 '$0';" \ - " sleep 5;\"", \ - d, useragent, r, cookiefile, NULL \ +#define DOWNLOAD(u, r) { \ + .v = (const char *[]){ "st", "-e", "/bin/sh", "-c",\ + "curl -g -L -J -O -A \"$1\" -b \"$2\" -c \"$2\"" \ + " -e \"$3\" \"$4\"; read", \ + "surf-download", useragent, cookiefile, r, u, NULL \ } \ }