Update Jellyfin.Api/Helpers/MediaInfoHelper.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Cody Robibero 2020-08-19 04:53:25 -06:00 committed by GitHub
parent b90e240af6
commit 3a722740ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}