sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit e96f24af8bb6e97156a891de90026c340596ba5e
parent ab3faa2db543523872a6a3b0cf7f362f6459a5e4
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 21 May 2016 14:06:24 +0200

sfeed_update: unique sort feed on first creation

when a feed file is created for the first time make sure to sort and
filter duplicate items using the same logic as merge().

Diffstat:
Msfeed_update | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sfeed_update b/sfeed_update @@ -86,8 +86,7 @@ feed() { # overwrite old file with updated file mv "${sfeedfilenew}" "${sfeedfile}" else - # else just copy - mv "${tmpfeedfile}" "${sfeedfile}" + merge "/dev/null" "${tmpfeedfile}" > "${sfeedfile}" fi fi) & }