From e4e0ef39a70067894059f74d1672c16b40a7eea0 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 2 Mar 2021 08:39:22 +0100 Subject: [PATCH] fallback for icons --- src/librssguard/services/standard/standardfeed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/librssguard/services/standard/standardfeed.cpp b/src/librssguard/services/standard/standardfeed.cpp index 91b5be69b..2bb213539 100644 --- a/src/librssguard/services/standard/standardfeed.cpp +++ b/src/librssguard/services/standard/standardfeed.cpp @@ -426,6 +426,11 @@ StandardFeed* StandardFeed::guessFeed(StandardFeed::SourceType source_type, } } + if (source_type == SourceType::Url && icon_possible_locations.isEmpty()) { + // We have no source for feed icon, we use the URL of the feed file itself. + icon_possible_locations.append({ source, false }); + } + // Try to obtain icon. QIcon icon_data;