handle missing client type

This commit is contained in:
Luke Pulverenti 2014-03-13 17:29:25 -04:00
parent d3e8e1b133
commit 2c7aaa5293

View File

@ -244,9 +244,15 @@ namespace MediaBrowser.Dlna.PlayTo
var profile = _dlnaManager.GetProfile(deviceProperties.DisplayName, deviceProperties.ModelName,
deviceProperties.ModelNumber);
if (!string.IsNullOrWhiteSpace(profile.Name))
{
deviceProperties.DisplayName = profile.Name;
}
if (!string.IsNullOrWhiteSpace(profile.ClientType))
{
deviceProperties.ClientType = profile.ClientType;
}
}
/// <summary>
/// Determines if the Uri is valid for further inspection or not.