sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 44225e7fd3216f814b0c687a22dedffb375468fe
parent 694176e019ed6e7a6651292799616d01e5f44921
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  5 Aug 2015 12:49:00 +0200

sfeed_opml_import: change to new config (feeds directory) + simplify

Diffstat:
Msfeed_opml_import.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 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);