aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Images/ImageService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-28 20:49:44 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-28 20:49:44 -0400
commita018d28b12dae200e2acd9da18268ad0b319b94b (patch)
tree2cf5b785ed499ac2028adf37329f14cdd0856616 /MediaBrowser.Api/Images/ImageService.cs
parent088d04392f0910ece15e84f28aed9f27b3391dae (diff)
support refreshing collection folders through the api
Diffstat (limited to 'MediaBrowser.Api/Images/ImageService.cs')
-rw-r--r--MediaBrowser.Api/Images/ImageService.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs
index 3074b0d5b..46dac4070 100644
--- a/MediaBrowser.Api/Images/ImageService.cs
+++ b/MediaBrowser.Api/Images/ImageService.cs
@@ -785,19 +785,7 @@ namespace MediaBrowser.Api.Images
await _providerManager.SaveImage(entity, memoryStream, mimeType, imageType, imageIndex, CancellationToken.None).ConfigureAwait(false);
- var user = entity as User;
-
- if (user != null)
- {
- await _userManager.UpdateUser(user).ConfigureAwait(false);
- }
- else
- {
- await _libraryManager.UpdateItem(entity, ItemUpdateType.ImageUpdate, CancellationToken.None)
- .ConfigureAwait(false);
- }
-
- await entity.RefreshMetadata(CancellationToken.None, allowSlowProviders: false).ConfigureAwait(false);
+ await entity.RefreshMetadata(CancellationToken.None, forceRefresh: true, forceSave: true, allowSlowProviders: false).ConfigureAwait(false);
}
}
}