Only add one new item if it is the first run.

This commit is contained in:
tastytea 2019-12-28 06:54:05 +01:00
parent 9a3fb420d7
commit 4168e77648
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}
}
}