diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-06-23 12:08:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-23 12:08:03 -0400 |
| commit | ad5ceb2cb4352270598c226767ab78460fe6718a (patch) | |
| tree | 1a804fbb76aeb5205a065d3f742609e7bab4020e /MediaBrowser.Api/Library/LibraryService.cs | |
| parent | d4b50a18e1c639f98cb26250c4d1dccbfcc49185 (diff) | |
| parent | 023952d04df3765ee5574915f0a84903bb97a748 (diff) | |
Merge pull request #2723 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryService.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index d9fc7143f9..80d8c072ee 100644 --- a/MediaBrowser.Api/Library/LibraryService.cs +++ b/MediaBrowser.Api/Library/LibraryService.cs @@ -28,6 +28,7 @@ using MediaBrowser.Controller.IO; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Services; using MediaBrowser.Common.Extensions; +using MediaBrowser.Common.Progress; namespace MediaBrowser.Api.Library { @@ -445,7 +446,7 @@ namespace MediaBrowser.Api.Library } else { - Task.Run(() => _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None)); + Task.Run(() => _libraryManager.ValidateMediaLibrary(new SimpleProgress<double>(), CancellationToken.None)); } } @@ -483,7 +484,7 @@ namespace MediaBrowser.Api.Library } else { - Task.Run(() => _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None)); + Task.Run(() => _libraryManager.ValidateMediaLibrary(new SimpleProgress<double>(), CancellationToken.None)); } } @@ -696,7 +697,7 @@ namespace MediaBrowser.Api.Library { try { - _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None); + _libraryManager.ValidateMediaLibrary(new SimpleProgress<double>(), CancellationToken.None); } catch (Exception ex) { |
