Don't use Discogs if fetching all album covers because of trottling.
This commit is contained in:
@@ -44,7 +44,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
public:
|
||||
AlbumCoverFetcherSearch(const CoverSearchRequest &request, QNetworkAccessManager *network, QObject *parent);
|
||||
|
||||
void Start(CoverProviders* cover_providers);
|
||||
void Start(CoverProviders *cover_providers);
|
||||
|
||||
// Cancels all pending requests. No Finished signals will be emitted, and it
|
||||
// is the caller's responsibility to delete the AlbumCoverFetcherSearch.
|
||||
@@ -52,6 +52,8 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
|
||||
CoverSearchStatistics statistics() const { return statistics_; }
|
||||
|
||||
bool fetchall_ = false;
|
||||
|
||||
signals:
|
||||
// It's the end of search (when there was no fetch-me-a-cover request).
|
||||
void SearchFinished(quint64, const CoverSearchResults& results);
|
||||
@@ -96,6 +98,7 @@ private:
|
||||
QNetworkAccessManager *network_;
|
||||
|
||||
bool cancel_requested_;
|
||||
|
||||
};
|
||||
|
||||
#endif // ALBUMCOVERFETCHERSEARCH_H
|
||||
|
||||
Reference in New Issue
Block a user