handle missing client type
This commit is contained in:
parent
d3e8e1b133
commit
2c7aaa5293
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user