diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-13 18:09:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-13 21:26:23 +0200 |
commit | a15d7ad07a5865f2f51e85d5e4e049922c50deec (patch) | |
tree | 851a49e189a568ad98e15fe6466796e701300546 /src/main.c | |
parent | 9566646cd54a34c0dfe2dbdd89ee3858372a6c28 (diff) |
Finish add_rss (still need add rss of filename though)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |