From 4168e77648d979bb3ebb5a8a3a1b592a50964698 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 06:54:05 +0100 Subject: [PATCH] Only add one new item if it is the first run. --- src/document.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/document.cpp b/src/document.cpp index 6456823..51343e7 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -178,6 +178,11 @@ void Document::parse_rss(const pt::ptree &tree) new_items.push_front(item); BOOST_LOG_TRIVIAL(debug) << "Found GUID: " << item.guid; + + if (_data.last_guid.empty()) + { + break; + } } } }