mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Added more debug in rss
This commit is contained in:
parent
2c48968a31
commit
0fb78727d5
@ -257,7 +257,6 @@ class RssStream : public QObject{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString getLastRefreshElapsedString() const{
|
QString getLastRefreshElapsedString() const{
|
||||||
// TODO: remove this debug before release
|
|
||||||
return tr("%1 ago", "10min ago").arg(misc::userFriendlyDuration((long)(lastRefresh.elapsed()/1000.)).replace("<", "<"));
|
return tr("%1 ago", "10min ago").arg(misc::userFriendlyDuration((long)(lastRefresh.elapsed()/1000.)).replace("<", "<"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -387,10 +386,13 @@ class RssStream : public QObject{
|
|||||||
qDebug("error: icon open failed, no file or empty file at "+iconPath.toUtf8());
|
qDebug("error: icon open failed, no file or empty file at "+iconPath.toUtf8());
|
||||||
if(QFile::exists(iconPath)) {
|
if(QFile::exists(iconPath)) {
|
||||||
QFile::remove(iconPath);
|
QFile::remove(iconPath);
|
||||||
if(downloadFailure)
|
if(downloadFailure){
|
||||||
iconPath = ":/Icons/unavailable.png";
|
iconPath = ":/Icons/unavailable.png";
|
||||||
else
|
qDebug("Could not open favicon nor rss stream, setting icon to unavailable (%s)",(const char*)getAlias().toUtf8());
|
||||||
|
} else {
|
||||||
iconPath = ":/Icons/rss.png";
|
iconPath = ":/Icons/rss.png";
|
||||||
|
qDebug("Could not open favicon, setting default icon (%s)",(const char*)getAlias().toUtf8());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user