Rename cache album covers to download album covers and only do it for
favorite requests
This commit is contained in:
@@ -904,7 +904,8 @@ void QobuzRequest::SongsFinishCheck(const qint64 artist_id, const QString &album
|
||||
if (!album_songs_requests_queue_.isEmpty() && album_songs_requests_active_ < kMaxConcurrentAlbumSongsRequests) FlushAlbumSongsRequests();
|
||||
|
||||
if (
|
||||
service_->cache_album_covers() &&
|
||||
service_->download_album_covers() &&
|
||||
IsQuery() &&
|
||||
songs_requests_queue_.isEmpty() &&
|
||||
songs_requests_active_ <= 0 &&
|
||||
album_songs_requests_queue_.isEmpty() &&
|
||||
|
||||
@@ -96,7 +96,7 @@ QobuzService::QobuzService(Application *app, QObject *parent)
|
||||
artistssearchlimit_(1),
|
||||
albumssearchlimit_(1),
|
||||
songssearchlimit_(1),
|
||||
cache_album_covers_(true),
|
||||
download_album_covers_(true),
|
||||
pending_search_id_(0),
|
||||
next_pending_search_id_(1),
|
||||
search_id_(0),
|
||||
@@ -205,7 +205,7 @@ void QobuzService::ReloadSettings() {
|
||||
artistssearchlimit_ = s.value("artistssearchlimit", 4).toInt();
|
||||
albumssearchlimit_ = s.value("albumssearchlimit", 10).toInt();
|
||||
songssearchlimit_ = s.value("songssearchlimit", 10).toInt();
|
||||
cache_album_covers_ = s.value("cachealbumcovers", true).toBool();
|
||||
download_album_covers_ = s.value("cachealbumcovers", true).toBool();
|
||||
|
||||
user_auth_token_ = s.value("user_auth_token").toString();
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ class QobuzService : public InternetService {
|
||||
int artistssearchlimit() { return artistssearchlimit_; }
|
||||
int albumssearchlimit() { return albumssearchlimit_; }
|
||||
int songssearchlimit() { return songssearchlimit_; }
|
||||
bool cache_album_covers() { return cache_album_covers_; }
|
||||
bool download_album_covers() { return download_album_covers_; }
|
||||
|
||||
QString user_auth_token() { return user_auth_token_; }
|
||||
|
||||
@@ -198,7 +198,7 @@ class QobuzService : public InternetService {
|
||||
int artistssearchlimit_;
|
||||
int albumssearchlimit_;
|
||||
int songssearchlimit_;
|
||||
bool cache_album_covers_;
|
||||
bool download_album_covers_;
|
||||
|
||||
QString user_auth_token_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user