From 44225e7fd3216f814b0c687a22dedffb375468fe Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 5 Aug 2015 12:49:00 +0200 Subject: sfeed_opml_import: change to new config (feeds directory) + simplify --- sfeed_opml_import.c | 8 +++----- 1 file 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 [encoding]\n", stdout); + " # feed [basesiteurl] [encoding]\n", stdout); xmlparser_parse_fd(&parser, 0); fputs("}\n", stdout); -- cgit v1.2.3