rework server sync

This commit is contained in:
Luke Pulverenti
2015-04-13 01:12:02 -04:00
parent 933fca78e6
commit 65fb01bbe2
23 changed files with 162 additions and 105 deletions

View File

@@ -793,8 +793,6 @@ namespace MediaBrowser.Server.Implementations.Sync
}
else
{
_logger.Debug("Setting status to Queued for {0} because it is no longer on the device.", jobItem.ItemId);
// Content is no longer on the device
if (jobItem.IsMarkedForRemoval)
{
@@ -802,6 +800,7 @@ namespace MediaBrowser.Server.Implementations.Sync
}
else
{
_logger.Debug("Setting status to Queued for {0} because it is no longer on the device.", jobItem.ItemId);
jobItem.Status = SyncJobItemStatus.Queued;
}
requiresSaving = true;
@@ -902,8 +901,6 @@ namespace MediaBrowser.Server.Implementations.Sync
}
else
{
_logger.Debug("Setting status to Queued for {0} because it is no longer on the device.", jobItem.Id);
// Content is no longer on the device
if (jobItem.IsMarkedForRemoval)
{
@@ -911,6 +908,7 @@ namespace MediaBrowser.Server.Implementations.Sync
}
else
{
_logger.Debug("Setting status to Queued for {0} because it is no longer on the device.", jobItem.Id);
jobItem.Status = SyncJobItemStatus.Queued;
}
requiresSaving = true;