crier

RSS and Atom feed aggregator
Info | Log | Files | Refs

commit 544d8e68ce32cecacf70123ca8858f47bae4ce98
parent c00781d9122306403e6d357e37e87f4acfafe9ad
Author: lash <dev@holbrook.no>
Date:   Sun, 15 Sep 2024 22:34:54 +0100

Use link element as guid if guid missing

Diffstat:
Mcrier-lib/src/rss.rs | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/crier-lib/src/rss.rs b/crier-lib/src/rss.rs @@ -140,7 +140,14 @@ fn translate_item(ipt: Item) -> Result<Entry, Error> { opt.set_id(String::from(v.value())); } }, - _ => {}, + _ => { + match ipt.link { + Some(v) => { + opt.set_id(v.clone()); + }, + _ => {}, + } + }, }; for v in ipt.categories {