Use the actual artist name's initial if 'Ignore "The" in artist name' option is used when organizing files.

Fixes issue 3201.
This commit is contained in:
Mateusz Kowalczyk 2012-11-10 17:55:33 +01:00 committed by Arnaud Bienner
parent 6a8f41f0bb
commit 2bf8172590
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ QString OrganiseFormat::TagValue(const QString &tag, const Song &song) const {
else if (tag == "extension") value = song.url().toLocalFile().section('.', -1, -1);
else if (tag == "artistinitial") {
value = song.effective_albumartist().trimmed();
if (replace_the_ && !value.isEmpty())
value.replace(QRegExp("^the\\s+", Qt::CaseInsensitive), "");
if (!value.isEmpty()) value = value[0].toUpper();
}
else if (tag == "albumartist") {