mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
save appVersion with device record
This commit is contained in:
@@ -32,12 +32,12 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
});
|
||||
}
|
||||
|
||||
public DeviceProfile GetDeviceProfile(SyncTarget target, string quality)
|
||||
public DeviceProfile GetDeviceProfile(SyncTarget target, string profile, string quality)
|
||||
{
|
||||
var caps = _deviceManager.GetCapabilities(target.Id);
|
||||
|
||||
var profile = caps == null || caps.DeviceProfile == null ? new DeviceProfile() : caps.DeviceProfile;
|
||||
var maxBitrate = profile.MaxStaticBitrate;
|
||||
var deviceProfile = caps == null || caps.DeviceProfile == null ? new DeviceProfile() : caps.DeviceProfile;
|
||||
var maxBitrate = deviceProfile.MaxStaticBitrate;
|
||||
|
||||
if (maxBitrate.HasValue)
|
||||
{
|
||||
@@ -50,10 +50,10 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
maxBitrate = Convert.ToInt32(maxBitrate.Value * .5);
|
||||
}
|
||||
|
||||
profile.MaxStaticBitrate = maxBitrate;
|
||||
deviceProfile.MaxStaticBitrate = maxBitrate;
|
||||
}
|
||||
|
||||
return profile;
|
||||
return deviceProfile;
|
||||
}
|
||||
|
||||
public string Name
|
||||
@@ -101,5 +101,10 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public IEnumerable<SyncQualityOption> GetProfileOptions(SyncTarget target)
|
||||
{
|
||||
return new List<SyncQualityOption>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user