aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-17 13:15:09 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-17 13:15:09 -0500
commit628c6cbc28f5a744785731dd4e94ec7a1f881dd2 (patch)
treeee6a85142a5641c1881b46dc062ea6f21fa0778d /MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs
parent7a136349eea53097a4fb9e52de81a32bf2a4e086 (diff)
make library scan a bit more hands off
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs
index aa6c6281e..dfdbda1d9 100644
--- a/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresValidator.cs
@@ -39,14 +39,11 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
.Distinct(StringComparer.OrdinalIgnoreCase)
.ToList();
- progress.Report(2);
var numComplete = 0;
var count = items.Count;
foreach (var name in items)
{
- cancellationToken.ThrowIfCancellationRequested();
-
try
{
var itemByName = _libraryManager.GetMusicGenre(name);
@@ -66,9 +63,9 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
numComplete++;
double percent = numComplete;
percent /= count;
- percent *= 90;
+ percent *= 100;
- progress.Report(percent + 10);
+ progress.Report(percent);
}
progress.Report(100);