Add setting for lyric providers and add more providers

Fixes #335
This commit is contained in:
Jonas Kvinge
2020-05-08 18:35:36 +02:00
parent 6ef69f6b32
commit f44ce49ea7
39 changed files with 1834 additions and 105 deletions

View File

@@ -51,11 +51,13 @@ class LyricsFetcherSearch : public QObject {
private:
void AllProvidersFinished();
void SendBestImage();
static bool ProviderCompareOrder(LyricsProvider *a, LyricsProvider *b);
static bool LyricsSearchResultCompareScore(const LyricsSearchResult &a, const LyricsSearchResult &b);
private:
static const int kSearchTimeoutMs;
static const int kGoodLyricsLength;
static const float kHighScore;
LyricsSearchRequest request_;
LyricsSearchResults results_;