mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
RSS: parse lastBuildDate tag and abort parsing if the feed has not changed since last time.
Optimization to address issue #34.
This commit is contained in:
@@ -54,6 +54,7 @@ signals:
|
||||
|
||||
public slots:
|
||||
void parseRssFile(const QString& feedUrl, const QString& filePath);
|
||||
void clearFeedData(const QString& feedUrl);
|
||||
|
||||
protected:
|
||||
virtual void run();
|
||||
@@ -68,6 +69,7 @@ private:
|
||||
QMutex m_mutex;
|
||||
QQueue<ParsingJob> m_queue;
|
||||
QWaitCondition m_waitCondition;
|
||||
QHash<QString/*feedUrl*/, QString/*lastBuildDate*/> m_lastBuildDates; // Optimization
|
||||
};
|
||||
|
||||
#endif // RSSPARSER_H
|
||||
|
||||
Reference in New Issue
Block a user