private async Task RefreshMusicGenre(RefreshMusicGenre request) { var item = GetMusicGenre(request.Name, _libraryManager); try { await item.RefreshMetadata(CancellationToken.None, forceRefresh : request.Forced).ConfigureAwait(false); } catch (Exception ex) { Logger.ErrorException("Error refreshing library", ex); } }
private async Task RefreshMusicGenre(RefreshMusicGenre request) { var item = GetMusicGenre(request.Name, _libraryManager); try { await item.RefreshMetadata(GetRefreshOptions(request), CancellationToken.None).ConfigureAwait(false); } catch (Exception ex) { Logger.ErrorException("Error refreshing library", ex); } }
public void Post(RefreshMusicGenre request) { var task = RefreshMusicGenre(request); Task.WaitAll(task); }