The Free Software Media System - Server Backend & API
update sync value
Luke Pulverenti9c9ca620bc8c
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.csindex f9dfb13508..68d9a5e9b5 100644--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs@@ -1668,7 +1668,7 @@ namespace MediaBrowser.Server.Implementations.Dto{double percent = 0;SyncedItemProgress syncItemProgress;- if (syncProgress.TryGetValue(dto.Id, out syncItemProgress))+ if (syncProgress.TryGetValue(child.Id.ToString("N"), out syncItemProgress)){switch (syncItemProgress.Status){@@ -1695,7 +1695,11 @@ namespace MediaBrowser.Server.Implementations.Dtoif (addSyncInfo){- dto.SyncPercent = totalSyncPercent / recursiveItemCount;+ var pct = totalSyncPercent / recursiveItemCount;+ if (pct > 0)+ {+ dto.SyncPercent = pct;+ }}}