summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-05 12:49:00 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-05 13:03:15 +0200
commit44225e7fd3216f814b0c687a22dedffb375468fe (patch)
treee968c9ba5a1f568849c5978aae894715532d62ce /sfeed_opml_import.c
parent694176e019ed6e7a6651292799616d01e5f44921 (diff)
sfeed_opml_import: change to new config (feeds directory) + simplify
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index 7f7cf91..4e73708 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -48,8 +48,7 @@ xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen,
if (istag(tag, "outline")) {
printf("\tfeed \"%s\" \"%s\" \"%s\"\n",
feedname[0] ? feedname : "unnamed",
- feedurl[0] ? feedurl : "",
- basesiteurl[0] ? basesiteurl : "");
+ feedurl, basesiteurl);
}
}
@@ -84,12 +83,11 @@ main(void)
"# paths\n"
"# NOTE: make sure to uncomment all these if you change it.\n"
"#sfeedpath=\"$HOME/.sfeed\"\n"
- "#sfeedfile=\"$sfeedpath/feeds\"\n"
- "#sfeedfilenew=\"$sfeedfile.new\"\n"
+ "#sfeeddir=\"${sfeedpath}/feeds\"\n"
"\n"
"# list of feeds to fetch:\n"
"feeds() {\n"
- " # feed <name> <feedurl> <basesiteurl> [encoding]\n", stdout);
+ " # feed <name> <feedurl> [basesiteurl] [encoding]\n", stdout);
xmlparser_parse_fd(&parser, 0);
fputs("}\n", stdout);