Rename cache album covers to download album covers and only do it for
favorite requests
This commit is contained in:
@@ -72,7 +72,7 @@ class SubsonicBaseRequest : public QObject {
|
||||
QString username() { return service_->username(); }
|
||||
QString password() { return service_->password(); }
|
||||
bool verify_certificate() { return service_->verify_certificate(); }
|
||||
bool cache_album_covers() { return service_->cache_album_covers(); }
|
||||
bool download_album_covers() { return service_->download_album_covers(); }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@ void SubsonicRequest::SongsFinishCheck() {
|
||||
if (!album_songs_requests_queue_.isEmpty() && album_songs_requests_active_ < kMaxConcurrentAlbumSongsRequests) FlushAlbumSongsRequests();
|
||||
|
||||
if (
|
||||
cache_album_covers() &&
|
||||
download_album_covers() &&
|
||||
album_songs_requests_queue_.isEmpty() &&
|
||||
album_songs_requests_active_ <= 0 &&
|
||||
album_cover_requests_queue_.isEmpty() &&
|
||||
|
||||
@@ -70,7 +70,7 @@ SubsonicService::SubsonicService(Application *app, QObject *parent)
|
||||
collection_model_(nullptr),
|
||||
collection_sort_model_(new QSortFilterProxyModel(this)),
|
||||
verify_certificate_(false),
|
||||
cache_album_covers_(true)
|
||||
download_album_covers_(true)
|
||||
{
|
||||
|
||||
app->player()->RegisterUrlHandler(url_handler_);
|
||||
@@ -112,7 +112,7 @@ void SubsonicService::ReloadSettings() {
|
||||
else password_ = QString::fromUtf8(QByteArray::fromBase64(password));
|
||||
|
||||
verify_certificate_ = s.value("verifycertificate", false).toBool();
|
||||
cache_album_covers_ = s.value("cachealbumcovers", true).toBool();
|
||||
download_album_covers_ = s.value("cachealbumcovers", true).toBool();
|
||||
|
||||
s.endGroup();
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ class SubsonicService : public InternetService {
|
||||
QString username() { return username_; }
|
||||
QString password() { return password_; }
|
||||
bool verify_certificate() { return verify_certificate_; }
|
||||
bool cache_album_covers() { return cache_album_covers_; }
|
||||
bool download_album_covers() { return download_album_covers_; }
|
||||
|
||||
CollectionBackend *collection_backend() { return collection_backend_; }
|
||||
CollectionModel *collection_model() { return collection_model_; }
|
||||
@@ -120,7 +120,7 @@ class SubsonicService : public InternetService {
|
||||
QString username_;
|
||||
QString password_;
|
||||
bool verify_certificate_;
|
||||
bool cache_album_covers_;
|
||||
bool download_album_covers_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user