From 79f155fe6f3e7d105c5ef971fbfc7286a1f9b661 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 4 Mar 2007 20:10:28 +0000 Subject: Improve UI, workaround cover bug, fix mediarev Replaced line-feed with newline on download completion Worked around attempt to download cover when non-existant Removed whitespace mediarev parsing restrictions Fixed bug miscounting media items parsed Misc mediarev tidying git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-2 --- download.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'download.c') diff --git a/download.c b/download.c index c099c1f..099a65f 100644 --- a/download.c +++ b/download.c @@ -112,7 +112,7 @@ void save_file(CURL *curl_handle, char *url, char *filepath) */ fclose(file); - printf("\r"); + printf("\n"); } else { fprintf(stderr,"Error: curl failed to initialise.\n"); @@ -152,7 +152,8 @@ void downloadissue(CURL *curl_handle, char * directory, iss * issue, int force) scanf("%s", newdir); /* TODO: incorporate tab-completion */ } - if(issue->cover.title[0]) + /* not reliable - workaround until malloc is completed */ + if(!strncmp(issue->cover.uri, "http://www.", 11)) { snprintf(filename,STR_MAX,"%s/cover.pdf", newdir); if(!force){ -- cgit v1.2.3