|
|
@ -741,11 +741,12 @@ void feedIconChanged(QString url, QString icon_path); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void refreshOldFeeds(){ |
|
|
|
void refreshOldFeeds(){ |
|
|
|
|
|
|
|
qDebug("refresh old feeds"); |
|
|
|
RssStream *stream; |
|
|
|
RssStream *stream; |
|
|
|
foreach(stream, streams){ |
|
|
|
foreach(stream, streams){ |
|
|
|
QString url = stream->getUrl(); |
|
|
|
QString url = stream->getUrl(); |
|
|
|
if(stream->isLoading()) return; |
|
|
|
if(stream->isLoading()) continue; |
|
|
|
if(stream->getLastRefreshElapsed() != -1 && stream->getLastRefreshElapsed() < (int)refreshInterval) return; |
|
|
|
if(stream->getLastRefreshElapsed() != -1 && stream->getLastRefreshElapsed() < (int)refreshInterval) continue; |
|
|
|
qDebug("Refreshing old feed: %s...", (const char*)url.toLocal8Bit()); |
|
|
|
qDebug("Refreshing old feed: %s...", (const char*)url.toLocal8Bit()); |
|
|
|
stream->setLoading(true); |
|
|
|
stream->setLoading(true); |
|
|
|
downloader->downloadUrl(url); |
|
|
|
downloader->downloadUrl(url); |
|
|
|