Fix RSS with normal links do not work (#7016)

Fix regression of RSS code redesign.
Closes #7003.
This commit is contained in:
Vladimir Golovnev 2017-06-30 11:16:40 +03:00 committed by GitHub
parent 1a506ac582
commit 4d28f8f48d

View file

@ -69,6 +69,11 @@ Article::Article(Feed *feed, const QVariantHash &varHash)
throw std::runtime_error("Bad RSS Article data");
m_data[KeyId] = m_guid;
if (m_torrentURL.isEmpty()) {
m_torrentURL = m_link;
m_data[KeyTorrentURL] = m_torrentURL;
}
}
Article::Article(Feed *feed, const QJsonObject &jsonObj)