mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-19 12:22:47 +01:00
fix some unwanted freshrss behavior
This commit is contained in:
parent
792f269b5f
commit
158203ce2c
@ -30,7 +30,7 @@
|
||||
<url type="donation">https://martinrotter.github.io/donate/</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="3.9.2" date="2021-05-17"/>
|
||||
<release version="3.9.2" date="2021-05-18"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
@ -333,16 +333,25 @@ RootItem* GreaderNetwork::decodeTagsSubscriptions(const QString& categories, con
|
||||
QString icon_url = subscription["iconUrl"].toString();
|
||||
QList<QPair<QString, bool>> icon_urls;
|
||||
|
||||
icon_urls.append({ url, false });
|
||||
|
||||
if (!icon_url.isEmpty()) {
|
||||
if (icon_url.startsWith(QSL("//"))) {
|
||||
icon_url = QUrl(baseUrl()).scheme() + QSL(":") + icon_url;
|
||||
}
|
||||
else if (service() == GreaderServiceRoot::Service::FreshRss) {
|
||||
QUrl icon_url_obj(icon_url);
|
||||
QUrl base_url(baseUrl());
|
||||
|
||||
if (icon_url_obj.host() == base_url.host()) {
|
||||
icon_url_obj.setPort(base_url.port());
|
||||
icon_url = icon_url_obj.toString();
|
||||
}
|
||||
}
|
||||
|
||||
icon_urls.append({ icon_url, true });
|
||||
}
|
||||
|
||||
icon_urls.append({ url, false });
|
||||
|
||||
QIcon icon;
|
||||
|
||||
if (NetworkFactory::downloadIcon(icon_urls,
|
||||
|
Loading…
Reference in New Issue
Block a user