capture conductor

This commit is contained in:
Luke Pulverenti 2016-01-12 15:49:33 -05:00
parent 56763c08a2
commit b7780ec7c6
2 changed files with 13 additions and 1 deletions

View File

@ -440,7 +440,6 @@ namespace MediaBrowser.MediaEncoding.Probing
} }
var composer = FFProbeHelpers.GetDictionaryValue(tags, "composer"); var composer = FFProbeHelpers.GetDictionaryValue(tags, "composer");
if (!string.IsNullOrWhiteSpace(composer)) if (!string.IsNullOrWhiteSpace(composer))
{ {
foreach (var person in Split(composer, false)) foreach (var person in Split(composer, false))
@ -449,6 +448,15 @@ namespace MediaBrowser.MediaEncoding.Probing
} }
} }
var conductor = FFProbeHelpers.GetDictionaryValue(tags, "conductor");
if (!string.IsNullOrWhiteSpace(conductor))
{
foreach (var person in Split(conductor, false))
{
audio.People.Add(new BaseItemPerson { Name = person, Type = PersonType.Conductor });
}
}
audio.Album = FFProbeHelpers.GetDictionaryValue(tags, "album"); audio.Album = FFProbeHelpers.GetDictionaryValue(tags, "album");
var artists = FFProbeHelpers.GetDictionaryValue(tags, "artists"); var artists = FFProbeHelpers.GetDictionaryValue(tags, "artists");

View File

@ -30,5 +30,9 @@ namespace MediaBrowser.Model.Entities
/// The producer /// The producer
/// </summary> /// </summary>
public const string Producer = "Producer"; public const string Producer = "Producer";
/// <summary>
/// The conductor
/// </summary>
public const string Conductor = "Conductor";
} }
} }