From 921ec9cd11b71171cb69fa538e9d1ec1f2ffbbd5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 26 Nov 2016 19:40:15 -0500 Subject: save additional info to recording nfo's --- MediaBrowser.Api/Library/LibraryService.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Api/Library/LibraryService.cs') diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index 695718a25..15c1cbe82 100644 --- a/MediaBrowser.Api/Library/LibraryService.cs +++ b/MediaBrowser.Api/Library/LibraryService.cs @@ -680,14 +680,17 @@ namespace MediaBrowser.Api.Library /// The request. public void Post(RefreshLibrary request) { - try - { - _libraryManager.ValidateMediaLibrary(new Progress(), CancellationToken.None); - } - catch (Exception ex) + Task.Run(() => { - Logger.ErrorException("Error refreshing library", ex); - } + try + { + _libraryManager.ValidateMediaLibrary(new Progress(), CancellationToken.None); + } + catch (Exception ex) + { + Logger.ErrorException("Error refreshing library", ex); + } + }); } /// -- cgit v1.2.3