diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index cf5d75bb77..f9c8e9a31c 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -705,12 +705,16 @@ namespace MediaBrowser.Server.Implementations.Library BaseItem obj; - if (forceCreation || !_itemsByName.TryGetValue(key, out obj)) + if (!_itemsByName.TryGetValue(key, out obj)) { obj = await CreateItemByName(path, name, cancellationToken, allowSlowProviders).ConfigureAwait(false); _itemsByName.AddOrUpdate(key, obj, (keyName, oldValue) => obj); } + else if (forceCreation) + { + await obj.RefreshMetadata(cancellationToken, false, allowSlowProviders: allowSlowProviders).ConfigureAwait(false); + } return obj as T; }