aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-13 18:09:15 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-13 21:26:23 +0200
commita15d7ad07a5865f2f51e85d5e4e049922c50deec (patch)
tree851a49e189a568ad98e15fe6466796e701300546 /src/main.c
parent9566646cd54a34c0dfe2dbdd89ee3858372a6c28 (diff)
Finish add_rss (still need add rss of filename though)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bae9644..11b2a5d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -242,7 +242,9 @@ static void command_add(int argc, char **argv, char *rss_config_dir, char *html_
fprintf(stderr, "Failed to create %s, error: %s\n", rss_config_dir, strerror(res));
exit(1);
}
- add_rss(media_name, media_url, rss_config_dir, start_after);
+
+ if(add_rss(media_name, media_url, rss_config_dir, start_after) != 0)
+ exit(1);
} else if(strcmp(media_type, "html") == 0) {
(void)html_config_dir;
} else {