commit d5c8126b99443c415ded9ef8e3f4618102565054 parent 4f271e2e9864f65f96a356eb607963cc1326bf95 Author: Quentin Rameau <quinq@fifth.space> Date: Tue, 25 Jul 2017 18:49:37 +0200 Only plumb images, download other binary files. Diffstat:
sacc.c | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sacc.c b/sacc.c @@ -463,7 +463,7 @@ plumb(char *url) } static int -displayimg(Item *item) +plumbitem(Item *item) { int tmpfd; @@ -513,9 +513,12 @@ dig(Item *entry, Item *item) case '5': case '6': case '9': + if (!downloaditem(item)) + return 0; + break; case 'g': case 'I': - if (!displayimg(item)) + if (!plumbitem(item)) return 0; break; default: