sfeed

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

commit 54d062900808b5646bd8e9b0ec856c0a42da90dd
parent afd8f901b4ed41d8c33c341ebe0be5e3dd5ca7b3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 29 Jul 2015 12:04:17 +0200

sfeed: prefer published over updated

It was useful to kept track of updated news articles for example, sadly
some sites (like youtube) bump the "updated" timestamp everytime a user
likes a video or farts. This makes it totally useless and messes
up the sort order of "news".

Now prefer "published" over "updated" for Atom feeds.

Diffstat:
Msfeed.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -566,8 +566,8 @@ xml_handler_start_element(XMLParser *p, const char *name, size_t namelen) } } else if (ctx.item.feedtype == FeedTypeAtom) { if (ctx.tagid == AtomTagPublished || ctx.tagid == AtomTagUpdated) { - /* ignore, prefer updated over published */ - if (ctx.tagid != AtomTagPublished || !ctx.item.timestamp.len) { + /* ignore, prefer published over updated */ + if (ctx.tagid != AtomTagUpdated || !ctx.item.timestamp.len) { ctx.field = &ctx.item.timestamp; } } else if (ctx.tagid == AtomTagTitle) {