add support for album artist tag
This commit is contained in:
13
src/song.cpp
13
src/song.cpp
@@ -190,6 +190,11 @@ std::string MPD::Song::GetAlbum(unsigned pos) const
|
||||
return GetTag(MPD_TAG_ALBUM, pos);
|
||||
}
|
||||
|
||||
std::string MPD::Song::GetAlbumArtist(unsigned pos) const
|
||||
{
|
||||
return GetTag(MPD_TAG_ALBUM_ARTIST, pos);
|
||||
}
|
||||
|
||||
std::string MPD::Song::GetTrack(unsigned pos) const
|
||||
{
|
||||
std::string track = GetTag(MPD_TAG_TRACK, pos);
|
||||
@@ -263,6 +268,11 @@ void MPD::Song::SetAlbum(const std::string &str, unsigned pos)
|
||||
SetTag(MPD_TAG_ALBUM, pos, str);
|
||||
}
|
||||
|
||||
void MPD::Song::SetAlbumArtist(const std::string &str, unsigned pos)
|
||||
{
|
||||
SetTag(MPD_TAG_ALBUM_ARTIST, pos, str);
|
||||
}
|
||||
|
||||
void MPD::Song::SetTrack(const std::string &str, unsigned pos)
|
||||
{
|
||||
SetTag(MPD_TAG_TRACK, pos, str);
|
||||
@@ -374,6 +384,9 @@ std::string MPD::Song::ParseFormat(std::string::const_iterator &it, const char *
|
||||
case 'a':
|
||||
get = &MPD::Song::GetArtist;
|
||||
break;
|
||||
case 'A':
|
||||
get = &MPD::Song::GetAlbumArtist;
|
||||
break;
|
||||
case 'b':
|
||||
get = &MPD::Song::GetAlbum;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user