Add option not to remove "Remastered", etc from song titles

This commit is contained in:
Jonas Kvinge
2025-10-18 19:57:38 +02:00
parent 8bfc3bc41c
commit d61adeb595
18 changed files with 69 additions and 21 deletions

View File

@@ -1077,7 +1077,9 @@ void TidalRequest::ParseSong(Song &song, const QJsonObject &json_obj, const Arti
}
}
title = Song::TitleRemoveMisc(title);
if (service_->remove_remastered()) {
title = Song::TitleRemoveMisc(title);
}
//qLog(Debug) << "id" << song_id << "track" << track << "disc" << disc << "title" << title << "album" << album << "album artist" << album_artist << "artist" << artist << cover << allow_streaming << url;

View File

@@ -96,6 +96,7 @@ TidalService::TidalService(const SharedPtr<TaskManager> task_manager,
download_album_covers_(true),
stream_url_method_(TidalSettings::StreamUrlMethod::StreamUrl),
album_explicit_(false),
remove_remastered_(true),
pending_search_id_(0),
next_pending_search_id_(1),
pending_search_type_(SearchType::Artists),
@@ -232,7 +233,8 @@ void TidalService::ReloadSettings() {
coversize_ = s.value(TidalSettings::kCoverSize, u"640x640"_s).toString();
download_album_covers_ = s.value(TidalSettings::kDownloadAlbumCovers, true).toBool();
stream_url_method_ = static_cast<TidalSettings::StreamUrlMethod>(s.value(TidalSettings::kStreamUrl, static_cast<int>(TidalSettings::StreamUrlMethod::StreamUrl)).toInt());
album_explicit_ = s.value(TidalSettings::kAlbumExplicit).toBool();
album_explicit_ = s.value(TidalSettings::kAlbumExplicit, false).toBool();
remove_remastered_ = s.value(TidalSettings::kRemoveRemastered, true).toBool();
s.endGroup();
oauth_->set_client_id(client_id_);

View File

@@ -89,6 +89,7 @@ class TidalService : public StreamingService {
bool download_album_covers() const { return download_album_covers_; }
TidalSettings::StreamUrlMethod stream_url_method() const { return stream_url_method_; }
bool album_explicit() const { return album_explicit_; }
bool remove_remastered() const { return remove_remastered_; }
bool authenticated() const override;
QByteArray authorization_header() const;
@@ -171,6 +172,7 @@ class TidalService : public StreamingService {
bool download_album_covers_;
TidalSettings::StreamUrlMethod stream_url_method_;
bool album_explicit_;
bool remove_remastered_;
int pending_search_id_;
int next_pending_search_id_;