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:
parent
6a8f41f0bb
commit
2bf8172590
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user