From f28e66b54843ccf5fe1fd7888aa32cb857d53fa2 Mon Sep 17 00:00:00 2001 From: mr-boneman Date: Thu, 27 Mar 2025 12:55:06 +0100 Subject: [PATCH] more fix --- src/rss.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rss.nim b/src/rss.nim index b341703..ab0a246 100644 --- a/src/rss.nim +++ b/src/rss.nim @@ -54,10 +54,11 @@ proc mixRssFeeds*( entries[^1].items = entries[^1].items.mapIt( block: var item = it - if feed.timeFormat.len != 0 and item.pubDate.isSome(): + if feed.timeFormat.len != 0: # if the IDE screams at you here, ignore it - item.pubdate = - some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat)) + if item.pubDate.isSome(): + item.pubdate = + some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat)) if item.updated.isSome(): item.updated = some(parse(item.updated.get(), feed.timeFormat).format(atomTimeFormat))