settings: restore possibility to set album artist as library tag
This commit is contained in:
@@ -325,7 +325,7 @@
|
|||||||
##
|
##
|
||||||
#user_interface = classic
|
#user_interface = classic
|
||||||
#
|
#
|
||||||
## Available values: artist, date, genre, composer, performer.
|
## Available values: artist, album_artist, date, genre, composer, performer.
|
||||||
##
|
##
|
||||||
#media_library_primary_tag = artist
|
#media_library_primary_tag = artist
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ bool Configuration::read(const std::string &config_path)
|
|||||||
p.add("media_library_primary_tag", option_parser::worker([this](std::string &&v) {
|
p.add("media_library_primary_tag", option_parser::worker([this](std::string &&v) {
|
||||||
if (v == "artist")
|
if (v == "artist")
|
||||||
media_lib_primary_tag = MPD_TAG_ARTIST;
|
media_lib_primary_tag = MPD_TAG_ARTIST;
|
||||||
|
else if (v == "album_artist")
|
||||||
|
media_lib_primary_tag = MPD_TAG_ALBUM_ARTIST;
|
||||||
else if (v == "date")
|
else if (v == "date")
|
||||||
media_lib_primary_tag = MPD_TAG_DATE;
|
media_lib_primary_tag = MPD_TAG_DATE;
|
||||||
else if (v == "genre")
|
else if (v == "genre")
|
||||||
|
|||||||
Reference in New Issue
Block a user