Add scrobbler option for stripping "remastered" etc

Fixes #1387
This commit is contained in:
Jonas Kvinge
2024-04-04 21:17:07 +02:00
parent d398c86b0c
commit 1dae80a633
13 changed files with 35 additions and 15 deletions

View File

@@ -98,6 +98,7 @@ void ScrobblerSettingsPage::Load() {
ui_->spinbox_submit->setValue(scrobbler_->submit_delay());
ui_->checkbox_albumartist->setChecked(scrobbler_->prefer_albumartist());
ui_->checkbox_show_error_dialog->setChecked(scrobbler_->ShowErrorDialog());
ui_->checkbox_strip_remastered->setChecked(scrobbler_->strip_remastered());
ui_->checkbox_source_collection->setChecked(scrobbler_->sources().contains(Song::Source::Collection));
ui_->checkbox_source_local->setChecked(scrobbler_->sources().contains(Song::Source::LocalFile));
@@ -139,6 +140,7 @@ void ScrobblerSettingsPage::Save() {
s.setValue("submit", ui_->spinbox_submit->value());
s.setValue("albumartist", ui_->checkbox_albumartist->isChecked());
s.setValue("show_error_dialog", ui_->checkbox_show_error_dialog->isChecked());
s.setValue("strip_remastered", ui_->checkbox_strip_remastered->isChecked());
QStringList sources;
if (ui_->checkbox_source_collection->isChecked()) sources << Song::TextForSource(Song::Source::Collection);