diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-12-24 01:59:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 01:59:25 +0000 |
| commit | 076a13abeb344f7a79d81cce030799c8e77dbfaf (patch) | |
| tree | 4a8ca89b77a636e37dc6e6396118fa074f9a2f90 /Jellyfin.Server.Implementations/Devices/DeviceManager.cs | |
| parent | 259bc231d6a42171fb13db77a7694bf4a83d3478 (diff) | |
| parent | b880dc8a4a2d1820c6063f441edce42ab399d79e (diff) | |
Merge pull request #7029 from cvium/allocations_maybe
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices/DeviceManager.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index 0655c9813..a55949df8 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -7,6 +7,7 @@ using Jellyfin.Data.Entities.Security; using Jellyfin.Data.Enums; using Jellyfin.Data.Events; using Jellyfin.Data.Queries; +using Jellyfin.Extensions; using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Devices; @@ -219,7 +220,7 @@ namespace Jellyfin.Server.Implementations.Devices return true; } - return user.GetPreference(PreferenceKind.EnabledDevices).Contains(deviceId, StringComparer.OrdinalIgnoreCase) + return user.GetPreference(PreferenceKind.EnabledDevices).Contains(deviceId, StringComparison.OrdinalIgnoreCase) || !GetCapabilities(deviceId).SupportsPersistentIdentifier; } |
