diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-05 12:49:00 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-05 13:03:15 +0200 |
commit | 44225e7fd3216f814b0c687a22dedffb375468fe (patch) | |
tree | e968c9ba5a1f568849c5978aae894715532d62ce | |
parent | 694176e019ed6e7a6651292799616d01e5f44921 (diff) |
sfeed_opml_import: change to new config (feeds directory) + simplify
-rw-r--r-- | sfeed_opml_import.c | 8 |
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); |