Added option to hide album dates (#417)
* Added option to hide album dates * Fixed formating typo
This commit is contained in:
committed by
GitHub
parent
b72768d168
commit
750e7ff59d
@@ -1116,7 +1116,8 @@ std::string AlbumToString(const AlbumEntry &ae)
|
||||
result += " - ";
|
||||
}
|
||||
}
|
||||
if (Config.media_lib_primary_tag != MPD_TAG_DATE && !ae.entry().date().empty() && !isAlbumOnly)
|
||||
|
||||
if (Config.media_lib_primary_tag != MPD_TAG_DATE && !Config.media_lib_hide_album_dates && !ae.entry().date().empty())
|
||||
result += "(" + ae.entry().date() + ") ";
|
||||
result += ae.entry().album().empty() ? "<no album>" : ae.entry().album();
|
||||
}
|
||||
|
||||
@@ -430,6 +430,7 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
|
||||
});
|
||||
p.add("user_interface", &design, "classic");
|
||||
p.add("data_fetching_delay", &data_fetching_delay, "yes", yes_no);
|
||||
p.add("media_library_hide_album_dates", &media_lib_hide_album_dates, "no", yes_no);
|
||||
p.add("media_library_primary_tag", &media_lib_primary_tag, "artist", [](std::string v) {
|
||||
if (v == "artist")
|
||||
return MPD_TAG_ARTIST;
|
||||
|
||||
@@ -168,6 +168,7 @@ struct Configuration
|
||||
bool visualizer_in_stereo;
|
||||
bool data_fetching_delay;
|
||||
bool media_library_sort_by_mtime;
|
||||
bool media_lib_hide_album_dates;
|
||||
bool tag_editor_extended_numeration;
|
||||
bool discard_colors_if_item_is_selected;
|
||||
bool store_lyrics_in_song_dir;
|
||||
|
||||
Reference in New Issue
Block a user