tOnly plumb images, download other binary files. - sacc - simple console gopher client
(HTM) git clone git://src.adamsgaard.dk/sacc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit d5c8126b99443c415ded9ef8e3f4618102565054
(DIR) parent 4f271e2e9864f65f96a356eb607963cc1326bf95
(HTM) Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 25 Jul 2017 18:49:37 +0200
Only plumb images, download other binary files.
Diffstat:
M sacc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/sacc.c b/sacc.c
t@@ -463,7 +463,7 @@ plumb(char *url)
}
static int
-displayimg(Item *item)
+plumbitem(Item *item)
{
int tmpfd;
t@@ -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: