Don't use Discogs if fetching all album covers because of trottling.

This commit is contained in:
Jonas Kvinge
2018-03-05 21:05:30 +01:00
parent 887e045a63
commit 1aabdc9b8b
20 changed files with 69 additions and 58 deletions

View File

@@ -39,10 +39,11 @@ class CoverProvider : public QObject {
Q_OBJECT
public:
explicit CoverProvider(const QString& name, QObject* parent);
explicit CoverProvider(const QString &name, const bool &fetchall, QObject *parent);
// A name (very short description) of this provider, like "last.fm".
QString name() const { return name_; }
bool fetchall() const { return fetchall_; }
// Starts searching for covers matching the given query text. Returns true
// if the query has been started, or false if an error occurred. The provider
@@ -56,6 +57,8 @@ signals:
private:
QString name_;
bool fetchall_;
};
#endif // COVERPROVIDER_H