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))