Only add one new item if it is the first run.
This commit is contained in:
parent
9a3fb420d7
commit
4168e77648
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user