diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-04-30 20:01:48 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-04-30 20:01:48 +0000 |
| commit | 744da239bb6fa7a332da181ab0a65221c0de9978 (patch) | |
| tree | 93d123fa5dde08bffb06c45ee0e700700d258f47 /src/plugins/Input/mad/decodermadfactory.cpp | |
| parent | 5a0075ed95704f293829d9f7671bbc39e777b924 (diff) | |
| download | qmmp-744da239bb6fa7a332da181ab0a65221c0de9978.tar.gz qmmp-744da239bb6fa7a332da181ab0a65221c0de9978.tar.bz2 qmmp-744da239bb6fa7a332da181ab0a65221c0de9978.zip | |
improved album artist tag support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4884 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad/decodermadfactory.cpp')
| -rw-r--r-- | src/plugins/Input/mad/decodermadfactory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index 265ced841..a55627b60 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -208,6 +208,13 @@ QList<FileInfo *> DecoderMADFactory::createPlayList(const QString &fileName, boo if(tag == fileRef.ID3v2Tag()) { + if(!fileRef.ID3v2Tag()->frameListMap()["TPE2"].isEmpty()) + { + TagLib::String albumArtist; + albumArtist = fileRef.ID3v2Tag()->frameListMap()["TPE2"].front()->toString(); + info->setMetaData(Qmmp::ALBUMARTIST, + codec->toUnicode(albumArtist.toCString(utf)).trimmed()); + } if(!fileRef.ID3v2Tag()->frameListMap()["TCOM"].isEmpty()) { TagLib::String composer; |
