summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2007-03-04 20:10:28 +0000
committerNick White <arch@njw.me.uk>2007-03-04 20:10:28 +0000
commit79f155fe6f3e7d105c5ef971fbfc7286a1f9b661 (patch)
treea6ade144755f54a8963fcea04077ab31984735ba /download.c
parentc85db409583755f6975d97b94b8437c7b9657ab5 (diff)
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
Diffstat (limited to 'download.c')
-rw-r--r--download.c5
1 files changed, 3 insertions, 2 deletions
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){