public DeviceProfile GetDeviceProfile(SyncTarget target, string profile, string quality) { var caps = _deviceManager.GetCapabilities(target.Id); var deviceProfile = caps == null || caps.DeviceProfile == null ? new DeviceProfile() : caps.DeviceProfile; deviceProfile.MaxStaticBitrate = SyncHelper.AdjustBitrate(deviceProfile.MaxStaticBitrate, quality); return(deviceProfile); }
private SyncJobOptions GetDefaultSyncJobOptions(string profile, string quality) { var supportsAc3 = string.Equals(profile, "general", StringComparison.OrdinalIgnoreCase); var deviceProfile = new CloudSyncProfile(supportsAc3, false); deviceProfile.MaxStaticBitrate = SyncHelper.AdjustBitrate(deviceProfile.MaxStaticBitrate, quality); return(new SyncJobOptions { DeviceProfile = deviceProfile, IsConverting = IsConverting(profile, quality) }); }