Begin with the oldest item.
This commit is contained in:
parent
527c2347ea
commit
9a3fb420d7
|
@ -175,7 +175,7 @@ void Document::parse_rss(const pt::ptree &tree)
|
|||
item.guid = move(guid);
|
||||
item.link = rssitem.get<string>("link");
|
||||
item.title = move(title);
|
||||
new_items.push_back(item);
|
||||
new_items.push_front(item);
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "Found GUID: " << item.guid;
|
||||
}
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include <restclient-cpp/restclient.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
namespace mastorss
|
||||
{
|
||||
namespace pt = boost::property_tree;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::list;
|
||||
|
||||
/*!
|
||||
* @brief An Item of a feed.
|
||||
|
@ -59,7 +59,7 @@ public:
|
|||
Document(Document &&other) = default;
|
||||
Document &operator=(Document &&other) = delete;
|
||||
|
||||
vector<Item> new_items;
|
||||
list<Item> new_items;
|
||||
|
||||
void download();
|
||||
void download(const string &uri);
|
||||
|
|
Loading…
Reference in New Issue
Block a user