The Free Software Media System - Server Backend & API
ProviderManager: fix discard and 2 warnings
Bond_009dcd6ab769bb2
diff --git a/MediaBrowser.Providers/Manager/ProviderManager.cs b/MediaBrowser.Providers/Manager/ProviderManager.csindex 3bb2c6f0b0..f078f9cefc 100644--- a/MediaBrowser.Providers/Manager/ProviderManager.cs+++ b/MediaBrowser.Providers/Manager/ProviderManager.cs@@ -1021,26 +1021,26 @@ namespace MediaBrowser.Providers.Manager// TODO: Need to hunt down the conditions for this happening_activeRefreshes.AddOrUpdate(id,- (_) => throw new Exception(+ (_) => throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,"Cannot update refresh progress of item '{0}' ({1}) because a refresh for this item is not running",item.GetType().Name,item.Id.ToString("N", CultureInfo.InvariantCulture))),- (_, __) => progress);+ (_, _) => progress);RefreshProgress?.Invoke(this, new GenericEventArgs<Tuple<BaseItem, double>>(new Tuple<BaseItem, double>(item, progress)));}/// <inheritdoc/>- public void QueueRefresh(Guid id, MetadataRefreshOptions options, RefreshPriority priority)+ public void QueueRefresh(Guid itemId, MetadataRefreshOptions options, RefreshPriority priority){if (_disposed){return;}- _refreshQueue.Enqueue(new Tuple<Guid, MetadataRefreshOptions>(id, options), (int)priority);+ _refreshQueue.Enqueue(new Tuple<Guid, MetadataRefreshOptions>(itemId, options), (int)priority);lock (_refreshQueueLock){