Browse Source

Update Jellyfin.Api/Helpers/MediaInfoHelper.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Cody Robibero 4 năm trước cách đây
mục cha
commit
3a722740ce
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Jellyfin.Api/Helpers/MediaInfoHelper.cs

+ 3 - 3
Jellyfin.Api/Helpers/MediaInfoHelper.cs

@@ -465,10 +465,10 @@ namespace Jellyfin.Api.Helpers
             var profile = request.DeviceProfile;
             if (profile == null)
             {
-                var caps = _deviceManager.GetCapabilities(authInfo.DeviceId);
-                if (caps != null)
+                var clientCapabilities = _deviceManager.GetCapabilities(authInfo.DeviceId);
+                if (clientCapabilities != null)
                 {
-                    profile = caps.DeviceProfile;
+                    profile = clientCapabilities.DeviceProfile;
                 }
             }