Allow GUID to be empty.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c81d60242c
commit
e899754633
|
@ -146,7 +146,7 @@ void Document::parse_rss(const pt::ptree &tree)
|
|||
{
|
||||
const auto &rssitem = child.second;
|
||||
|
||||
string guid{rssitem.get<string>("guid")};
|
||||
string guid{rssitem.get<string>("guid", "")};
|
||||
if (guid.empty()) // We hope either <guid> or <link> are present.
|
||||
{
|
||||
guid = rssitem.get<string>("link");
|
||||
|
|
Loading…
Reference in New Issue
Block a user