aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sync/SyncManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-12 00:55:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-12 00:55:06 -0400
commit1a81da5a8f2a94e6e9fceb3693c0cbd138c3e7cb (patch)
tree3458aa76bda63a601bb06701b0e388dd8a05bbe9 /MediaBrowser.Server.Implementations/Sync/SyncManager.cs
parent6384c5bab0dd0c4a896beed4bb55e703c2e93301 (diff)
add quality methods
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sync/SyncManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sync/SyncManager.cs20
1 files changed, 3 insertions, 17 deletions
diff --git a/MediaBrowser.Server.Implementations/Sync/SyncManager.cs b/MediaBrowser.Server.Implementations/Sync/SyncManager.cs
index c02a54f90..0051447c0 100644
--- a/MediaBrowser.Server.Implementations/Sync/SyncManager.cs
+++ b/MediaBrowser.Server.Implementations/Sync/SyncManager.cs
@@ -974,7 +974,7 @@ namespace MediaBrowser.Server.Implementations.Sync
public AudioOptions GetAudioOptions(SyncJobItem jobItem, SyncJob job)
{
- var profile = GetDeviceProfile(jobItem.TargetId, job.Quality);
+ var profile = GetDeviceProfile(jobItem.TargetId, null);
return new AudioOptions
{
@@ -985,24 +985,10 @@ namespace MediaBrowser.Server.Implementations.Sync
public VideoOptions GetVideoOptions(SyncJobItem jobItem, SyncJob job)
{
var profile = GetDeviceProfile(jobItem.TargetId, job.Quality);
- var maxBitrate = profile.MaxStaticBitrate;
-
- if (maxBitrate.HasValue)
- {
- if (string.Equals(job.Quality, "medium", StringComparison.OrdinalIgnoreCase))
- {
- maxBitrate = Convert.ToInt32(maxBitrate.Value * .75);
- }
- else if (string.Equals(job.Quality, "low", StringComparison.OrdinalIgnoreCase))
- {
- maxBitrate = Convert.ToInt32(maxBitrate.Value * .5);
- }
- }
return new VideoOptions
{
- Profile = profile,
- MaxBitrate = maxBitrate
+ Profile = profile
};
}
@@ -1028,7 +1014,7 @@ namespace MediaBrowser.Server.Implementations.Sync
if (hasProfile != null)
{
- return hasProfile.GetDeviceProfile(target);
+ return hasProfile.GetDeviceProfile(target, quality);
}
return new CloudSyncProfile(true, false);