diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfoProvider.cs b/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfoProvider.cs index 0bb9e370c7..b9ef39be9f 100644 --- a/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfoProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/FFProbeAudioInfoProvider.cs @@ -141,10 +141,10 @@ namespace MediaBrowser.Providers.MediaInfo audio.AlbumArtist = GetDictionaryValue(tags, "albumartist") ?? GetDictionaryValue(tags, "album artist") ?? GetDictionaryValue(tags, "album_artist"); // Track number - audio.IndexNumber = GetDictionaryNumericValue(tags, "track"); + audio.IndexNumber = GetDictionaryDiscValue(tags, "track"); // Disc number - audio.ParentIndexNumber = GetDictionaryDiscValue(tags); + audio.ParentIndexNumber = GetDictionaryDiscValue(tags, "disc"); audio.Language = GetDictionaryValue(tags, "language"); @@ -240,10 +240,11 @@ namespace MediaBrowser.Providers.MediaInfo /// Gets the disc number, which is sometimes can be in the form of '1', or '1/3' /// /// The tags. + /// Name of the tag. /// System.Nullable{System.Int32}. - private int? GetDictionaryDiscValue(Dictionary tags) + private int? GetDictionaryDiscValue(Dictionary tags, string tagName) { - var disc = GetDictionaryValue(tags, "disc"); + var disc = GetDictionaryValue(tags, tagName); if (!string.IsNullOrEmpty(disc)) {