Merge pull request #11156 from sel10ut/bugfix/fix-audio-title

Change parsing logic of audio track title
This commit is contained in:
Bond-009 2024-03-16 16:43:16 +01:00 committed by GitHub
commit 1424723a75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -348,9 +348,9 @@ namespace MediaBrowser.Providers.MediaInfo
} }
} }
if (!audio.LockedFields.Contains(MetadataField.Name)) if (!audio.LockedFields.Contains(MetadataField.Name) && !string.IsNullOrEmpty(tags.Title))
{ {
audio.Name = options.ReplaceAllMetadata || string.IsNullOrEmpty(audio.Name) ? tags.Title : audio.Name; audio.Name = tags.Title;
} }
if (options.ReplaceAllMetadata) if (options.ReplaceAllMetadata)