Skip to content

Commit

Permalink
Merge pull request jellyfin#11156 from sel10ut/bugfix/fix-audio-title
Browse files Browse the repository at this point in the history
Change parsing logic of audio track title
  • Loading branch information
Bond-009 committed Mar 16, 2024
2 parents 50b4043 + e9caa65 commit 1424723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ private async Task FetchDataFromTags(Audio audio, MetadataRefreshOptions options
}
}

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)
Expand Down

0 comments on commit 1424723

Please sign in to comment.