Allow GUID to be empty.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-12-28 23:33:28 +01:00
parent c81d60242c
commit e899754633
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -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");