Rename cache album covers to download album covers and only do it for

favorite requests
This commit is contained in:
Jonas Kvinge
2019-07-01 01:01:30 +02:00
parent 9083c578cc
commit c2a6def8b9
16 changed files with 30 additions and 28 deletions

View File

@@ -862,7 +862,8 @@ void TidalRequest::SongsFinishCheck(const qint64 artist_id, const qint64 album_i
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() &&

View File

@@ -102,7 +102,7 @@ TidalService::TidalService(Application *app, QObject *parent)
albumssearchlimit_(1),
songssearchlimit_(1),
fetchalbums_(true),
cache_album_covers_(true),
download_album_covers_(true),
pending_search_id_(0),
next_pending_search_id_(1),
search_id_(0),
@@ -217,7 +217,7 @@ void TidalService::ReloadSettings() {
songssearchlimit_ = s.value("songssearchlimit", 10).toInt();
fetchalbums_ = s.value("fetchalbums", false).toBool();
coversize_ = s.value("coversize", "320x320").toString();
cache_album_covers_ = s.value("cachealbumcovers", true).toBool();
download_album_covers_ = s.value("cachealbumcovers", true).toBool();
stream_url_method_ = static_cast<TidalSettingsPage::StreamUrlMethod>(s.value("streamurl").toInt());
user_id_ = s.value("user_id").toInt();

View File

@@ -83,7 +83,7 @@ class TidalService : public InternetService {
int songssearchlimit() { return songssearchlimit_; }
bool fetchalbums() { return fetchalbums_; }
QString coversize() { return coversize_; }
bool cache_album_covers() { return cache_album_covers_; }
bool download_album_covers() { return download_album_covers_; }
TidalSettingsPage::StreamUrlMethod stream_url_method() { return stream_url_method_; }
QString access_token() { return access_token_; }
@@ -218,7 +218,7 @@ class TidalService : public InternetService {
int songssearchlimit_;
bool fetchalbums_;
QString coversize_;
bool cache_album_covers_;
bool download_album_covers_;
TidalSettingsPage::StreamUrlMethod stream_url_method_;
QString access_token_;