fix some feedly stubborn feeds not having titles

This commit is contained in:
Martin Rotter 2023-07-24 11:20:42 +02:00
parent aa372361ee
commit 03bd2e2baa
1 changed files with 6 additions and 0 deletions

View File

@ -564,6 +564,12 @@ RootItem* FeedlyNetwork::decodeCollections(const QByteArray& json,
feed->setTitle(feed->source());
}
if (feed->title().isEmpty()) {
feed->setTitle(feed->customId());
qWarningNN << LOGSEC_FEEDLY
<< "Some feed does not have nor title, neither description. Using its ID for its title.";
}
if (obtain_icons) {
QPixmap icon;
auto result = NetworkFactory::downloadIcon({{fee_obj[QSL("iconUrl")].toString(), true},