diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/Devices/DeviceManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Devices/DeviceManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs index 3211f88d5..b65b7d11b 100644 --- a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs +++ b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs @@ -44,7 +44,7 @@ namespace MediaBrowser.Server.Implementations.Devices _logger = logger; } - public async Task<DeviceInfo> RegisterDevice(string reportedId, string name, string appName, string usedByUserId) + public async Task<DeviceInfo> RegisterDevice(string reportedId, string name, string appName, string appVersion, string usedByUserId) { var device = GetDevice(reportedId) ?? new DeviceInfo { @@ -53,6 +53,7 @@ namespace MediaBrowser.Server.Implementations.Devices device.ReportedName = name; device.AppName = appName; + device.AppVersion = appVersion; if (!string.IsNullOrWhiteSpace(usedByUserId)) { @@ -109,7 +110,7 @@ namespace MediaBrowser.Server.Implementations.Devices devices = devices.Where(i => { var caps = GetCapabilities(i.Id); - var deviceVal = caps.SupportsUniqueIdentifier ?? caps.SupportsPersistentIdentifier; + var deviceVal = caps.SupportsPersistentIdentifier; return deviceVal == val; }); } |
