mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Try to download favicon.png when the download of favicon.ico fails
Manual backport of 3889b4c101
This commit is contained in:
@@ -644,6 +644,8 @@ void TrackerFiltersList::handleFavicoFailure(const QString& url, const QString&
|
||||
// that.
|
||||
Logger::instance()->addMessage(tr("Couldn't download favicon for URL `%1`. Reason: `%2`").arg(url).arg(error),
|
||||
Log::WARNING);
|
||||
if (url.endsWith(".ico", Qt::CaseInsensitive))
|
||||
m_downloader->downloadUrl(url.left(url.size() - 4) + ".png");
|
||||
}
|
||||
|
||||
void TrackerFiltersList::showMenu(QPoint)
|
||||
|
||||
Reference in New Issue
Block a user