mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed tiny bug in RSS feeds refreshing code
This commit is contained in:
parent
538c028f8a
commit
4d67170d3e
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue