From e8997546335067bbc8b30f5a34940f88eda5dd5b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 23:33:28 +0100 Subject: [PATCH] Allow GUID to be empty. --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 164072e..20446e2 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -146,7 +146,7 @@ void Document::parse_rss(const pt::ptree &tree) { const auto &rssitem = child.second; - string guid{rssitem.get("guid")}; + string guid{rssitem.get("guid", "")}; if (guid.empty()) // We hope either or are present. { guid = rssitem.get("link");