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
@@ -339,6 +339,8 @@
|
||||
#
|
||||
#media_library_albums_split_by_date = yes
|
||||
#
|
||||
#media_library_hide_album_dates = no
|
||||
#
|
||||
## Available values: wrapped, normal.
|
||||
##
|
||||
#default_find_mode = wrapped
|
||||
|
||||
@@ -236,6 +236,9 @@ Default tag type for leftmost column in media library.
|
||||
.B media_library_albums_split_by_date = yes/no
|
||||
Determines whether albums in media library should be split by date.
|
||||
.TP
|
||||
.B media_library_hide_album_dates = yes/no
|
||||
Determines whether album dates in media library should be hidden.
|
||||
.TP
|
||||
.B default_find_mode = wrapped/normal
|
||||
If set to "wrapped", going from last found position to next will take you to the first one (same goes for the first position and going to previous one), otherwise no actions will be performed.
|
||||
.TP
|
||||
|
||||
@@ -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