mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
handle missing client type
This commit is contained in:
parent
d3e8e1b133
commit
2c7aaa5293
@ -244,8 +244,14 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||||||
var profile = _dlnaManager.GetProfile(deviceProperties.DisplayName, deviceProperties.ModelName,
|
var profile = _dlnaManager.GetProfile(deviceProperties.DisplayName, deviceProperties.ModelName,
|
||||||
deviceProperties.ModelNumber);
|
deviceProperties.ModelNumber);
|
||||||
|
|
||||||
deviceProperties.DisplayName = profile.Name;
|
if (!string.IsNullOrWhiteSpace(profile.Name))
|
||||||
deviceProperties.ClientType = profile.ClientType;
|
{
|
||||||
|
deviceProperties.DisplayName = profile.Name;
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrWhiteSpace(profile.ClientType))
|
||||||
|
{
|
||||||
|
deviceProperties.ClientType = profile.ClientType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user