mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-13 05:41:17 +00:00
- Fixed tiny bug in RSS feeds refreshing code
This commit is contained in:
parent
538c028f8a
commit
4d67170d3e
@ -741,11 +741,12 @@ void feedIconChanged(QString url, QString icon_path);
|
||||
}
|
||||
|
||||
void refreshOldFeeds(){
|
||||
qDebug("refresh old feeds");
|
||||
RssStream *stream;
|
||||
foreach(stream, streams){
|
||||
QString url = stream->getUrl();
|
||||
if(stream->isLoading()) return;
|
||||
if(stream->getLastRefreshElapsed() != -1 && stream->getLastRefreshElapsed() < (int)refreshInterval) return;
|
||||
if(stream->isLoading()) continue;
|
||||
if(stream->getLastRefreshElapsed() != -1 && stream->getLastRefreshElapsed() < (int)refreshInterval) continue;
|
||||
qDebug("Refreshing old feed: %s...", (const char*)url.toLocal8Bit());
|
||||
stream->setLoading(true);
|
||||
downloader->downloadUrl(url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user