From 49472a3a8ff731dcccd8099c4070119426c49145 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 7 Mar 2007 01:25:23 +0000 Subject: various checks & cleanups, default usage, hook script Add file valid checks to update Add file checks to parse contents Remove empty files which don't download Automatically attempt to update contents if they cannot be opened Add default showopts if no options are passed Remove show struct mention in usage Move order of usage Add alternative media toc file option Added commit hook script git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-6 --- mediaxml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mediaxml.c') diff --git a/mediaxml.c b/mediaxml.c index b9631e2..54dd514 100644 --- a/mediaxml.c +++ b/mediaxml.c @@ -132,7 +132,8 @@ iss ** parsemedia(char * filepath, iss ** issue, int * no_of_issues) xmlDocPtr media_file; xmlNodePtr node, itnode; - ready_xml(filepath, "media", &media_file, &node); + if(ready_xml(filepath, "media", &media_file, &node)) + return NULL; *node = *node->xmlChildrenNode; -- cgit v1.2.3